CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin(2)
时间:2011-04-24 00:42来源: 作者: 点击:
次
3. 启动服务配置 [root@linuxfei ~]# /sbin/chkconfig httpd on [设置apache为自启动] [root@linuxfei ~]# /sbin/chkconfig -add mysqld [mysql服务] [root@linuxfei ~]# /sbin/chkconfig mysqld on [mysqld服务] [
3. 启动服务配置 [root@linuxfei ~]# /sbin/chkconfig httpd on [设置apache为自启动] [root@linuxfei ~]# /sbin/chkconfig –-add mysqld [mysql服务] [root@linuxfei ~]# /sbin/chkconfig mysqld on [mysqld服务] [root@linuxfei ~]# /sbin/service httpd start [自启动 httpd 服务] [root@linuxfei ~]# /sbin/service mysqld start [自启动mysqld服务] 4.设置mysql数据库root帐号密码。 [root@linuxfei ~]# mysqladmin -u root password 'linuxfei' [引号内填密码] [root@linuxfei ~]# mysql -u root -p ← 通过空密码用root登录 Enter password:linuxfei ← 在这里输入密码
Welcome to the MySQL monitor. Commands end with ; or \g. ← 确认用密码能够成功登录 Your MySQL connection id is 5 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
图片1 图片1
(责任编辑:admin) |
织梦二维码生成器
------分隔线----------------------------