Quote:
|
Originally Posted by mdhall
Make sure you do the following...
2) If you have phpMyAdmin, you can probably copy the query info in the .mysql file and paste it into the "SQL" page for your database.
3) Make sure that your user/pass has permission to work on the database.
|
Hey thanks for your help!
Ok let me follow up after trying a few more things...
Should the script file, swgcb-v0.9.2.mysql, along with the rest of the files included in the zip be in /cbi/bin ? That is where I have them now.
I went to "SQL" page in phpMyAdmin, and tried to paste this query:
mysql -udbuser -p dbname < swgcb-vx.x.x.mysql
Do I need to edit this at all? This is what I get when I try and run the query:
Error
SQL-query :
mysql - udbuser - p dbname < swgcb - vx.x.x.mysql
MySQL said:
You have an error in your SQL syntax near 'mysql - udbuser - p dbname < swgcb - vx.x.x.mysql' at line 1
Also now when I try and run the script directly I see this error log:
STDERR:
/cgi-bin/swgcb-v0.9.2.mysql: line 1: --: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 2: --
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 3: --: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 4: ---------------------------------------------------------
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 5: --: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 6:
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 7: --
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 8: --: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 9: --
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 10:
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 11: DROP: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 11:
: command not found
/cgi-bin/swgcb-v0.9.2.mysql: line 12: syntax error near unexpected token `('
/cgi-bin/swgcb-v0.9.2.mysql: line 12: `CREATE TABLE ability (
'
Failed to find the "nothing" line (\n\n)! Premature end of script headers.
STDOUT:
(nothing)
Also how/where can I check to make sure user/pass has permission to work on the database, if that could be a reason for this.