[系统]Ubuntu 12.04 server [问题描述]新安装的Ubuntu系统无法直接通过ssh远程连接. [解决办法] 新安装的Ubuntu系统并未安装ssh-server服务,需要自行安装,安装方法有很多: ① 如果可以连接外网的话直接使用apt-get命令安装即可:sudo apt-get install openssh-server. ② 如果不能连接外网,又不想自行查找ssh-server软件包,可以插上安装光盘,通过sudo apt-cdrom add命令加载光盘的内容,再执行
一.修改mysql权限 1.mysql -u root -p 回车输入密码 2.use mysql: 打开数据库 3.将host设置为%表示任何ip都能连接mysql,当然您也可以将host指定为某个ip: update user set host=’%’ where user=’root’ and host=’localhost’; 4.刷新权限表 flush privileges: 或者 添加一个新用户 用户名Tom,密码123456 grant all on *.* to 'T
MySQL是使用apt-get安装的 1.停止mysql服务 sudo service mysql stop 2.修改配置文件/etc/mysql/mysql.conf.d/mysqld.cnf 将bind-address = 127.0.0.1 这行注释掉改为 bind-address = 0.0.0.0 3.使用root登陆mysql hupeng@hupeng-vm:~$ mysql -u root -p mysql> grant all on *.* to root@"%"
mysql -u root -p 修改mysql库的user表,将host项,从localhost改为%.%这里表示的是允许任意host访问,如果只允许某一个ip访问,则可改为相应的ip mysql> use mysql; mysql> update user set host = '%' where user = 'root'; mysql> select host, user from user; mysql> flush privileges; 重启mysql服务 /etc/