本文共 1076 字,大约阅读时间需要 3 分钟。
service mysql start
mysql -u root -p
service mysql status
apt install python-
pip install django
pip install pymysql
service mysql stop
update mysql.user set authentication_string=PASSWORD('123'), plugin='mysql_native_password' where user='root';
flush privileges;
python manage.py runserver
g++ connectDB.cpp -o connectDB `mysql_config --cflags --libs`
postgres
。 su postgres
,如果不成功试下这条sudo -i -u postgres
psql
\c db
连接到db数据库下\q
退出管理系统。\l
列出所有的数据库。alter user postgres with password 'postgres';
brew install postgresql
brew uninstall postgresql
sudo chown -R $(whoami) /usr/local/lib
brew services start postgresql
createdb
psql
转载地址:http://fzbtb.baihongyu.com/