原文:解决windows下的mysql匿名登陆无法使用mysql数据库的问题 我在windows下安装了mysql,但是不用密码就能登进去,而root明明是有密码的,我用select user()命令查看当前登录用户是root. 查看数据库,只能看到自带的两个数据库(information_schema和test),mysql这个数据库都看不到.如果运行use mysql,就会出现 Access denied for user ''@'localhost' to database 'mysql'
最近弄了台linux云服务器,然而每次登陆linux都好麻烦,所以倒腾了下ssh无密登陆. linux:centos 6.5,自带ssh mac:yosemite,自带ssh 步骤: 1. 创建key ➜ .ssh ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/yinkw/.ssh/id_rsa): <--直接回车 Enter passph