Here I shall be jotting down one by one simple SQL commands that we use .
Check the comments .
Use this link to trackback from your own site.
Leave a response
Open command line
Type below to get into mysql via command line >> mysql -u root -p password ; [Password is the actual mysql password]
then to check databases >> show databases ;
Note down the database .
for mysql db dump , exit mysql
>> mysqldump -u root -p database > database.sql
[Replace database with actual database name]
Reverse thing to load the dump to DB .
>> mysql -u root -p database < /path/to/database.sql
Name: (required)
Email: (required) (will not be published)
Url:
Comments:
Open command line
Type below to get into mysql via command line
>> mysql -u root -p password ;
[Password is the actual mysql password]
then to check databases
>> show databases ;
Note down the database .
for mysql db dump , exit mysql
>> mysqldump -u root -p database > database.sql
[Replace database with actual database name]
Reverse thing to load the dump to DB .
Open command line
Type below to get into mysql via command line
>> mysql -u root -p password ;
[Password is the actual mysql password]
then to check databases
>> show databases ;
Note down the database .
for mysql db dump , exit mysql
>> mysql -u root -p database < /path/to/database.sql
[Replace database with actual database name]