Working on a Site Locally

Put it in /xampp/htdocs, rename it to db.sql, then run the command I posted above.
tried it not sure I am doing it right..
dos.webp
 
The -u is the user, followed by the user name, in my case root.
The -p is the password, followed by the password, in my case root.
The db_name is the name of the database.
The db.sql is the name of the backup you are importing.

So if your user name is bob and your password is moo and you are importing a dump named daily_backup.sql into a database named wibble, the command would be:

mysql -ubob -pmoo wibble <daily_backup.sql
 
The -u is the user, followed by the user name, in my case root.
The -p is the password, followed by the password, in my case root.
The db_name is the name of the database.
The db.sql is the name of the backup you are importing.

So if your user name is bob and your password is moo and you are importing a dump named daily_backup.sql into a database named wibble, the command would be:

mysql -ubob -pmoo wibble <daily_backup.sql

Ok, I got that @Brogan and thank you with the assistance, Now for the Collation when creating a backup what would I put?
dos.webp
 
@Brogan or anyone I just install vB and trying to do Import using Impex I get this error:

Warning: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in....\impex\db_mysql.phpon line138
Code:
ImpEx Database error

mysql error: Invalid SQL: CREATE TABLE impexerror (
                        errorid bigint(20) unsigned NOT NULL auto_increment,
                        errortype varchar(10) NOT NULL default '',
                        classnumber varchar(3) NOT NULL default '',
                        importid bigint(20) NOT NULL default 0,
                        error varchar(250) default 'NULL',
                        remedy varchar(250) default 'NULL',
                        PRIMARY KEY (errorid)
                    ) TYPE=MyISAM

mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 9

mysql error number: 1064

Date: Monday 21st 2014f July 2014 04:13:29 AM
Database: vbstangfix_forum
MySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 9
 
Top Bottom