Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thufir@dur:~$
- thufir@dur:~$ mysqlimport vehicles abc.csv -u root -p
- Enter password:
- mysqlimport: Error: 1146, Table 'vehicles.abc' doesn't exist, when using table: abc
- thufir@dur:~$
- thufir@dur:~$
- thufir@dur:~$ mysqlimport vehicles vehicles abc.csv -u root -p
- Enter password:
- mysqlimport: Error: 13, Can't get stat of '/var/lib/mysql/vehicles/vehicles' (Errcode: 2), when using table: vehicles
- thufir@dur:~$
- thufir@dur:~$ cat abc.csv
- a1,b1,31,41,e1
- a2,b2,32,42,e2
- a3,b3,33,43,e3
- thufir@dur:~$
- thufir@dur:~$ mysql -u root -p
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 60
- Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
- Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql>
- mysql> use vehicles;
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
- Database changed
- mysql> show tables;
- +--------------------+
- | Tables_in_vehicles |
- +--------------------+
- | vehicles |
- +--------------------+
- 1 row in set (0.00 sec)
- mysql> describe vehicles;
- +-------+-------------+------+-----+---------+-------+
- | Field | Type | Null | Key | Default | Extra |
- +-------+-------------+------+-----+---------+-------+
- | make | varchar(45) | YES | | NULL | |
- | model | varchar(45) | YES | | NULL | |
- | year | int(11) | YES | | NULL | |
- | phone | varchar(45) | YES | | NULL | |
- | title | varchar(45) | YES | | NULL | |
- +-------+-------------+------+-----+---------+-------+
- 5 rows in set (0.00 sec)
- mysql> quit
- Bye
- thufir@dur:~$
- thufir@dur:~$
Advertisement
Add Comment
Please, Sign In to add comment