CentOS7安装服务器端6.0.3版本,提示mysql密码

Please use a volume with enough free space
[ default “/root/haiwen/seafile-data” ]

Which port do you want to use for the seafile fileserver?
[ default “8082” ]


Please choose a way to initialize seafile databases:

[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 1

What is the host of mysql server?
[ default “localhost” ]

What is the port of mysql server?
[ default “3306” ]

What is the password of the mysql root user?
[ root password ]

=================================================================
这个默认密码是多少呢?mysql也是和seafile一起安装的,谢谢!

你安装mysql的时候设置的啊
不行就重装下呗

ubuntu/debian
apt-get purge mysql-server
apt-get install mysql-server
安装的时候会弹窗叫你输密码

CentOS应该是这两个
yum remove mysql-server
yum install mysql-server

如果实在不行
Google下 “centos change mysql root password”

好的,谢谢。我重新装下mysql。因为起初没有mysql的,装seafile才装的

兄弟我也碰到了这个问题,你是怎么解决的?

菜鸟一枚,也遇到这个问题,请问密码是什么?

如果是cent OS 7,有可能是因为在CentOS7中将数据库更改为mariadb,而mariadb没有启动导致的。
可以执行 service mariadb start启动mysql,之后在执行脚本,默认root密码为空

你如果没有设置密码,是直接回车的话,就是没有密码