How can I connect mysql database?



How can I connect mysql database?..

Answer / 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

More MySQL Interview Questions

How to display top 10 rows in mysql?

1 Answers  


change column name and make a unique column so we get no dupes.

1 Answers  


In PHPmysql language how can we update our previous information.when update form open then we get our previous information in textbox,checkbox,selct,radio button.How can we show the information in checkbox,select menu,radio button which is available in database?

0 Answers  


Write a command to view mysql database table structure?

1 Answers  


How to analyze tables with 'mysqlcheck'?

1 Answers  


What is myisam?

1 Answers  


What is mysqli_result?

1 Answers  


How can I see all mysql databases?

1 Answers  


What is the maximum size of table in mysql?

1 Answers  


I want to start and stop mysql on windows? How do I do that?

1 Answers  


What is orm in mysql?

1 Answers  


What is the latest mysql?

1 Answers  


Categories