Life was like a box of chocolates. You never know what you're gonna get.
© 2023. All rights reserved.
$ mysql $ mysql -u root -p $ mysql --user=your-user-name --password=your-password
mysql> CREATE DATABASE my_db; mysql> SHOW databases; mysql> USE my_db;
mysql> CREATE TABLE user (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, username CHAR(25), passward CHAR(100));
mysql> INSERT INTO user (id, username, passward) VALUES (NULL, 'name', 'secrect');
mysql> INSERT INTO user (id, username, passward) VALUES (NULL, 'name2', 'secrect2'), (NULL, 'name3', 'secrect3'), (NULL, 'name4', 'secrect4');
$ mysqldump -u user -p db-name > db-name.out $ mysql -u user -p db-name < db-name.out