adspace


How can I connect mysql database?

Answer Posted / Mohd Nazim

To connect to a MySQL database using the command-line client (mysql), use the following syntax: `mysql -u <username> -p -h <host> -D <database_name>`. Replace `<username>` with your username, `<host>` with the host name of your server, and `<database_name>` with the database you want to connect to. You will be prompted to enter your password.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Change a users password from unix shell.

1221


Which statement is used in a select query for partial matching?

1247


What is current version of mysql?

1081


What is the current mysql version?

1103