数据库连接正常,并且准备创建相应表
Note: 这个过程中要确保 php-mysql 包存在,否则无法与mysql 连接,会出现如下的界面
Tip: 遇到这种情况,先检查一下 php-mysql ,然后重新加载环境变量,重启一下 httpd 服务
安装 php-mysql 的过程
[root@h105 loganalyzer-3.6.6]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@h105 loganalyzer-3.6.6]# yum install php-mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Repository base is listed more than once in the configuration
Determining fastest mirrors
epel/metalink | 4.9 kB 00:00
* epel: ftp.cuhk.edu.hk
* extras: mirrors.pubyun.com
* updates: mirrors.pubyun.com
base | 4.0 kB 00:00 ...
base/primary_db | 4.5 MB 00:00 ...
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:04
extras | 3.4 kB 00:00
extras/primary_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.2 MB 00:03
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-46.el6_7.1.x86_64
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
php-mysql x86_64 5.3.3-46.el6_7.1 updates 86 k
Installing for dependencies:
php-pdo x86_64 5.3.3-46.el6_7.1 updates 80 k
Transaction Summary
====================================================================================================================================
Install 2 Package(s)
Total download size: 165 k
Installed size: 384 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): php-mysql-5.3.3-46.el6_7.1.x86_64.rpm | 86 kB 00:00
(2/2): php-pdo-5.3.3-46.el6_7.1.x86_64.rpm | 80 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 862 kB/s | 165 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-pdo-5.3.3-46.el6_7.1.x86_64 1/2
Installing : php-mysql-5.3.3-46.el6_7.1.x86_64 2/2
Verifying : php-mysql-5.3.3-46.el6_7.1.x86_64 1/2
Verifying : php-pdo-5.3.3-46.el6_7.1.x86_64 2/2
Installed:
php-mysql.x86_64 0:5.3.3-46.el6_7.1
Dependency Installed:
php-pdo.x86_64 0:5.3.3-46.el6_7.1
Complete!
[root@h105 loganalyzer-3.6.6]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。