Got two little problems with this interface. The worse one is that I have a file with a blank line (i have removed the SQL to demonstrate!). Tried to use mysql but get this
C:\Users\edheal\Desktop>mysql -e "blank.sql" -h localhost -u test -p
Enter password: *
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the ma
nual that corresponds to your MySQL server version for the right syntax to use n
ear 'blank.sql' at line 1
C:\Users\edheal\Desktop>cat -v "blank.sql"
^M
C:\Users\edheal\Desktop>
What could possibly be the problem? It is just a blank line!
The second – just me being lazy during development. Is it possible to not have a password on the account? Seems that the minimum is one character.
Try to use
One some standard installations, the root user does not have any password. But it is not possible to set an existing password to “empty”.