deepin mysql安装
<pre><code>deepin使用mysql-apt-config.DEB方式安装首先卸载当前的mysql sudo apt autoremove mysql*
配置文件和数据库数据在/etc/mysql /var/lib/mysql/ 下
</code></pre>
<p>sudo ps-ef|grep mysql<br>
sudo kill -9 xxx<br>
sudo /usr/sbin/mysqld —skip-grant-tables —user=root<br>
登录mysql<br>
mysql -uroot -p<br>
use mysql;<br>
update mysql.user set authentication_string=password(‘123456’) where user=’root’;<br>
flush privileges;</p>
<p>重新启动mysql<br>
采用apt-config 源 安装过程中的一些问题<br>
重装多次后发现一些问题,记录如下:<br>
在先前禁用deepin源的时候,可以安装成功,但不知道默认密码,尝试更改密码 需要先service mysql stop ,如果直接用kill杀死,则会自动重启mysql,导致无效。后发现强制无密码登录,有时成功,有时会失败。<br>
卸载安装不同版本时候,会出现配置文件没有被自动删除,或数据库文件保一些错误等问题。待研究。</p>
</div>
<div id="MySignature" role="contentinfo">
若有错误,欢迎指出。<br><br>
来源:https://www.cnblogs.com/holdoncomeon/p/12363577.html
頁:
[1]