懂建站的大神请进!
下面哪些信息要改成自己的?$config['db']['master']['charset']='utf8';$config['db']['master']['pconn...
下面哪些信息要改成自己的?
$config['db']['master']['charset'] = 'utf8';
$config['db']['master']['pconnect'] = 0;
$config['db']['master']['tablepre'] = 'ims_';
$config['db']['slave_status'] = false;
$config['db']['slave']['1']['host'] = '';
$config['db']['slave']['1']['username'] = '';
$config['db']['slave']['1']['password'] = '';
$config['db']['slave']['1']['port'] = '3307';
$config['db']['slave']['1']['database'] = '';
$config['db']['slave']['1']['charset'] = 'utf8';
$config['db']['slave']['1']['pconnect'] = 0;
$config['db']['slave']['1']['tablepre'] = 'ims_';
$config['db']['slave']['1']['weight'] = 0;
$config['db']['common']['slave_except_table'] = array('core_sessions');
// -------------------------- CONFIG COOKIE --------------------------- //
$config['cookie']['pre'] = '2787_';
$config['cookie']['domain'] = '';
$config['cookie']['path'] = '/';
// -------------------------- CONFIG SETTING --------------------------- //
$config['setting']['charset'] = 'utf-8';
$config['setting']['cache'] = 'mysql';
$config['setting']['timezone'] = 'Asia/Shanghai';
$config['setting']['memory_limit'] = '256M';
$config['setting']['filemode'] = 0644;
$config['setting']['authkey'] = '37d043a8';
$config['setting']['founder'] = '1';
$config['setting']['development'] = 0;
$config['setting']['referrer'] = 0;
$config['setting']['https'] = 0;
// -------------------------- CONFIG UPLOAD --------------------------- //
$config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
$config['upload']['image']['limit'] = 5000;
$config['upload']['attachdir'] = 'attachment';
$config['upload']['audio']['extentions'] = array('mp3');
$config['upload']['audio']['limit'] = 5000;
// -------------------------- CONFIG MEMCACHE --------------------------- //
$config['setting']['memcache']['server'] = '';
$config['setting']['memcache']['port'] = 11211;
$config['setting']['memcache']['pconnect'] = 1;
$config['setting']['memcache']['timeout'] = 30;
$config['setting']['memcache']['session'] = 1;
// -------------------------- CONFIG PROXY --------------------------- //
$config['setting']['proxy']['host'] = '';
$config['setting']['proxy']['auth'] = ''; 展开
$config['db']['master']['charset'] = 'utf8';
$config['db']['master']['pconnect'] = 0;
$config['db']['master']['tablepre'] = 'ims_';
$config['db']['slave_status'] = false;
$config['db']['slave']['1']['host'] = '';
$config['db']['slave']['1']['username'] = '';
$config['db']['slave']['1']['password'] = '';
$config['db']['slave']['1']['port'] = '3307';
$config['db']['slave']['1']['database'] = '';
$config['db']['slave']['1']['charset'] = 'utf8';
$config['db']['slave']['1']['pconnect'] = 0;
$config['db']['slave']['1']['tablepre'] = 'ims_';
$config['db']['slave']['1']['weight'] = 0;
$config['db']['common']['slave_except_table'] = array('core_sessions');
// -------------------------- CONFIG COOKIE --------------------------- //
$config['cookie']['pre'] = '2787_';
$config['cookie']['domain'] = '';
$config['cookie']['path'] = '/';
// -------------------------- CONFIG SETTING --------------------------- //
$config['setting']['charset'] = 'utf-8';
$config['setting']['cache'] = 'mysql';
$config['setting']['timezone'] = 'Asia/Shanghai';
$config['setting']['memory_limit'] = '256M';
$config['setting']['filemode'] = 0644;
$config['setting']['authkey'] = '37d043a8';
$config['setting']['founder'] = '1';
$config['setting']['development'] = 0;
$config['setting']['referrer'] = 0;
$config['setting']['https'] = 0;
// -------------------------- CONFIG UPLOAD --------------------------- //
$config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
$config['upload']['image']['limit'] = 5000;
$config['upload']['attachdir'] = 'attachment';
$config['upload']['audio']['extentions'] = array('mp3');
$config['upload']['audio']['limit'] = 5000;
// -------------------------- CONFIG MEMCACHE --------------------------- //
$config['setting']['memcache']['server'] = '';
$config['setting']['memcache']['port'] = 11211;
$config['setting']['memcache']['pconnect'] = 1;
$config['setting']['memcache']['timeout'] = 30;
$config['setting']['memcache']['session'] = 1;
// -------------------------- CONFIG PROXY --------------------------- //
$config['setting']['proxy']['host'] = '';
$config['setting']['proxy']['auth'] = ''; 展开
1个回答
展开全部
是啊,改成自己,你这是什么框架,字符集(第一部分)和数据库是必须要要设置的,缓存代理那些可以不填,数据库的端口怎么端口是3307,默认是3306,
追问
微擎的 比如我的数据库是qwe_123.用户名是qwe_234,密码是123456,该怎么改呢?
追答
$config['db']['slave']['1']['host'] = 'localhost'; //或者是服务器IP地址也行
$config['db']['slave']['1']['username'] = 'qwe_234'; //数据库的用户名
$config['db']['slave']['1']['password'] = '123456'; //数据库的密码
$config['db']['slave']['1']['port'] = '3306'; //一般是3306 ,你这个杂事3307
$config['db']['slave']['1']['database'] = 'qwe_123'; //数据库名称
$config['db']['slave']['1']['tablepre'] = 'ims_'; //这个是表前缀,可以换成别的
这些设置完了就可以设置连上数据库,网站可以访问了,其他的可以不设置,以后有需要可以再填,一般用不到
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询