赞
踩
手机安装AidLux,然后安装数据库,最后远程访问
局域网(没有会比较麻烦,这个是用来远程访问手机的,校园网好像还不太行),手机,电脑
E: Package 'mysql-server' has no installation candidate
apt install mariadb-server mariadb-client
service mysql start
mysql
- 查询用户 select Host,User from user; - 使可远程访问 localhost -> % update user set Host="%" where User="root"; - 查看root密码 select host, user,authentication_string from user; - 修改密码 update mysql.user set authentication_string=password('密码') where user='root'; - 终端打开目录:/etc/mysql/mariadb.conf.d cd /etc/mysql/mariadb.conf.d - 修改文件 50-server.cnf vim 50-server.cnf - 设置可远程访问,修改ip为0.0.0.0 bind-address = 0.0.0.0 - 取消端口的注释 port = 3306
`
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。