1

Hello im creating a batch file to install the wampserver . After that i want to import my name.sql file into the dabase that wampserver created. Im using this command :

mysql --u [bonis] --password=[bonis] ["jdbc:mysql://localhost"] < ["C:\Documents and    Settings\Bonis\Desktop\bpx.sql"]

pause

And telling me this : "The filename, directoryname, or volume label syntax is incorrect."

Any ideas?

0

1 Answer 1

1

Use the following command line: mysql < name.sql

Your sql code in the file has to contain "create database" and "create table" commands, though.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.