sql 必知必会 复习
1.环境搭建 ubuntu
安装 mysql 参考
xu@xu-VirtualBox:~$ sudo apt-get install mysql-server
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
出现如上错误
参考 https://blog.csdn.net/u011596455/article/details/60322568 删除 lock文件 rm /var/lib/dpkg/lock
接着就repeat 以下密码
接着安装mysqlclient libmysqlclient
sudo apt-get install mysql-server
sudo apt-get isntall mysql-client
sudo apt-get install libmysqlclient-dev #https://dev.mysql.com/downloads/connector/c/ #Connector/C (libmysqlclient) is a client library for C development.
这里就OK了