PDA

View Full Version : mysql 'Failed to open file 'db.sql', error: 2' please help!


nadineemu
12-15-2003, 06:26 AM
in the post HOWTO: Setup a server with EQEmu 5.X

its says to type in 'source db.sql;'

when i do this i get ...

'Failed to open file 'db.sql', error: 2'

i have moved the db.sql file from my eqserver dir to C:\mysql\bin as the guide also says.

Any ideas anyone, im sure its something simple enough. just a bit thick i guess :(

Conan
12-15-2003, 06:31 AM
When you are sourceing a file into mysql you must be in the directory that the file resides in.

cd\mysql\bin

mysql -u root mysql

use databasenamehere;

source db.sql

nadineemu
12-15-2003, 06:39 AM
ok that fixed it, thanks )