MySQL - Script to create account
Hi,
I use a script to create user's database. The user's account is got from a csv file. This is the script i use to create the account for user that is pulled out from the csv file: Code:
!/bin/bash Quote:
|
It looks like you're building a script and then trying to run the script.
My suggestion would be to name the script with the traditional .sql extension. This means the file that is referred to as execute and /execute would become execute.sql. You would run it like this: mysql -u root -p"somepass" < execute.sql Try doing this and then posting the first line of the execute.sql file. |
What is the content of the file 'execute'?
I think that you are missing some quotes in your SQL statement. It should look like this: Code:
CREATE DATABASE IF NOT EXISTS userdb; Arjan |
All times are GMT -5. The time now is 08:42 PM. |