Quote:
Originally Posted by sys64738
Hi
how about :
Code:
mysql -u root -p123456 -e "GRANT ALL PRIVILEGES ON `$varx\_\%` . * TO '$varx'@'localhost' IDENTIFIED BY '54321';"
You've to quote the "%" by "\" too. The "'" maybe also.
Are you sure you want to use "`" or should it be "'"?
|
Hi! thanks for your answer.
I solved my problem 30 seg. before your answer jeje...
What I did to solve my problem is escape the "`" that is necessary to the mysql sentence:
mysql -u root -p123456 -e "GRANT ALL PRIVILEGES ON \`$varx\_%\` . * TO '$varx'@'localhost' IDENTIFIED BY '54321';"
Thanks a lot for your answer!