I am using Debian Linux on which MySQL is installed.
I can log in to my Linux machine using root user as well as other user.
I can connect to MySQL database on Linux machine from Windows machine using SQLyog.
Now I want to execute queries on Linux machine only using Linux terminal command line.
I tried some following things on terminal
I went to root directory then I went to /var/lib directory
I run following commands on terminal
mysqladmin -u root -p
mysqladmin -u root -ppassword
everytime I have tried, I get the following error message:
ERROR 1045 (28000) Access denied for
user ‘root’@’localhost’ (Using
password NO)
How can I accomplish the following?:
- How do I get MySQL prompt in Linux terminal?
- How I stop the MySQL server from Linux terminal?
- How I start the MySQL server from Linux terminal?
- How do I get MySQL prompt in Linux terminal?
- How do I login to MySQL server from Linux terminal?
- How do I solve following error?
ERROR 1045 (28000) Access denied for
user ‘root’@’localhost’ (Using
password NO)
1.- How do I get mysql prompt in linux terminal?
At the
Enter password:prompt, well, enter root’s password 🙂You can find further reference by typing
mysql --helpor at the online manual.2. How I stop the mysql server from linux terminal?
It depends. Red Hat based distros have the
servicecommand:Other distros require to call the init script directly:
3. How I start the mysql server from linux terminal?
Same as #2, but with
start.4. How do I get mysql prompt in linux terminal?
Same as #1.
5. How do I login to mysql server from linux terminal?
Same as #1.
6. How do I solve following error?
Same as #1.