Hi
From the shell, with an account with SSH, but non-root, how do I create a mysql user, pass, and database.
I am writing a script to automaticly install and configure some software... how do I get the shell to prompt to enter a user with a password and create the db?
When, I try:
ammodump @ my.com [~/public_html/pnsetup_temp]# mysql --user=$USER mysql
ERROR 1045 (28000): Access denied for user 'me'@'localhost' (using password: NO)
ammodump @ my.com [~/public_html/pnsetup_temp]# mysql --user=$USER -p mysql
Enter password:
ERROR 1044 (42000): Access denied for user 'ammodump'@'localhost' to database 'mysql'
TIA,
Dave
From the shell, with an account with SSH, but non-root, how do I create a mysql user, pass, and database.
I am writing a script to automaticly install and configure some software... how do I get the shell to prompt to enter a user with a password and create the db?
When, I try:
ammodump @ my.com [~/public_html/pnsetup_temp]# mysql --user=$USER mysql
ERROR 1045 (28000): Access denied for user 'me'@'localhost' (using password: NO)
ammodump @ my.com [~/public_html/pnsetup_temp]# mysql --user=$USER -p mysql
Enter password:
ERROR 1044 (42000): Access denied for user 'ammodump'@'localhost' to database 'mysql'
TIA,
Dave