1.
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get updatesudo apt-get install python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally switch between the two python versions for python3
via command:
sudo update-alternatives --config python3
python3 -V
, gnome-terminal won’t launch after step 3, a workaround is running following commands to recreate the symlink:
sudo rm /usr/bin/python3sudo ln -s python3.5 /usr/bin/python3
2. pip3.6安装regex失败 pip3 install regex
$ sudo apt-get install python3.6-dev libpython3.6-dev
3.
4. (runoob)
整库
# mysql> create database miantiao
# mysql> use your_database_name; # mysql> source file.sql;
Export:
mysqldump -u username –-password=your_password database_name > file.sql
Import:
mysql -u username –-password=your_password database_name < file.sql
Another way to import dump files when source <filename>
doesn't work is to do the following:
Dump
~> mysqldump --user=<user> --password=<password> <db_name> > <export_file_name>.sql
Import
> mysql -u-p mysql> USE ; (if you didn't already select) mysql> \. ~/ .sql
5.
First:
Then:
6.
7.
REF:
(图文并茂)