首页 > 编程 > PHP > 正文

PHP MYSQL 数据库配置连接

2019-11-15 01:29:28
字体:
来源:转载
供稿:网友
php MySQL 数据库配置连接

//配置文件 Config.php

1 // 默认使用数据库配置 *****************************************2 3 $Config['ConnectTag'] = 'default';                // Mysql连接标识 可同时进行多连接4 $Config['Host'] = 'localhost';                    // Mysql主机地址5 $Config['User'] = 'root';                        // Mysql用户6 $Config['PassWord'] = '123456';                // Mysql密码7 $Config['DBname'] = 'test';                            // 数据库名称
// 默认使用数据库配置 *****************************************$Config['ConnectTag'] = 'default';// Mysql连接标识 可同时进行多连接$Config['Host'] = 'localhost';// Mysql主机地址$Config['User'] = 'root';// Mysql用户$Config['Password'] = '123456';// Mysql密码$Config['DBname'] = 'test';// 数据库名称

  


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表