Mysql error 1049 how to solve

0

I had just installed mysql on ubuntu, then rebooted my computer, when I tried to log in mysql gave this error.

Can anyone help me?

root@wladi-Dell-System-Vostro-3450:/# mysql -r root -p 
Enter password: 
ERROR 1049 (42000): Unknown database 'root'
root@wladi-Dell-System-Vostro-3450:/# 
    
asked by anonymous 11.08.2014 / 21:17

1 answer

1

The -r option refers to how certain special characters must be escaped on the client's output. At your command, root is being interpreted as the name of the database you want to access. I believe you are wanting to pass the user. If so, use the following command:

mysql -u root
    
11.08.2014 / 21:24