easyphp mysql_EasyPHP 数据库空密码
$g_administrator_email = ‘administrator@example.com’; //配置:如:123@123.com
$g_webmaster_email = ‘webmaster@example.com’; //配置:如:123@123.com
$g_from_email = ‘noreply@example.com’; //配置:如:123@123.com
$g_from_name =‘Mantis Bug Tracker’;$g_return_path_email = ‘admin@example.com’; //配置:如:123@123.com
$g_enable_email_notification =ON;$g_default_notify_flags = array(‘reporter’ => ON,
‘handler’ => ON,
‘monitor’ => ON,
‘bugnotes’ => ON,
‘explicit’ => ON,
‘threshold_min’ => NOBODY,
‘threshold_max’ => NOBODY);
$g_notify_flags['new'] = array(‘bugnotes’ => OFF, ‘monitor’ =>OFF);$g_notify_flags['monitor'] = array( ‘reporter’ => OFF,
‘handler’ => OFF,
‘monitor’ => OFF,
‘bugnotes’ => OFF,
‘explicit’ => ON,
‘threshold_min’ => NOBODY,
‘threshold_max’ => NOBODY);
$g_email_receive_own = OFF;
$g_validate_email =ON;$g_check_mx_record = OFF;
$g_allow_blank_email = OFF;
$g_limit_email_domain = OFF;
$g_show_user_email_threshold = NOBODY;
$g_show_user_realname_threshold = NOBODY;
$g_mail_priority = 3;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; //配置:SMTP方式
$g_smtp_host = ‘localhost’; //配置:SMTP服務器地址,如:smtp.qq.com
$g_smtp_username = ”; //配置:SMTP登錄用戶名,如:123456
$g_smtp_password = ”; //配置:SMTP登錄密碼,如:123456
$g_smtp_connection_mode = ”; //配置:如果沒有默認可為空,如果有按需要填寫,如ssl,tls。
$g_smtp_port = 25; //配置:SMTP服務器端口號,一般保持默認。
$g_email_send_using_cronjob = OFF;
$g_email_set_category = OFF;
$g_email_separator1 = str_pad(”, 70, ‘=’);
$g_email_separator2 = str_pad(”, 70, ‘-’);
$g_email_padding_length = 28;
另外,若希望郵件發送的時候是直接以IP地址發送鏈接的,而不是以localhost發送的。那么還需要配置C:\xampp\apache\conf目錄下在找到httpd.conf,
打開后搜索到listen,把Listen 80修改為listen IP:80,IP就是你服務器的地址。還有修改php.ini,把SMTP = localhost修改為SMTP = IP,IP為你服務器IP。
5)【轉】使用Phpmyadmin 遠程控制mysql數據庫
一、修改libraries文件夾下的config.default.php文件
1、查找$cfg['PmaAbsoluteUri'] ,將其值設置為你本地的phpmyadmin路徑,例如http://127.0.0.1:9999/phpmyadmin/我用的是在本地為phpmyadmin配的域名:db.com,具體如下:
$cfg['PmaAbsoluteUri'] = ‘db.com’;
2、查找$cfg['Servers'][$i]['host'] , 將其值設置為你mysql數據庫地址,例如125.24.112.19
$cfg['Servers'][$i]['host'] = ‘ 125.24.112.19’ ;
3、查找$cfg['Servers'][$i]['user'] , 將其值設置為你mysql數據庫用戶名,例如abcd
$cfg['Servers'][$i]['user'] = ‘網上數據庫用戶名’;
4、查找$cfg['Servers'][$i]['password'] , 將其值設置為你mysql數據庫密碼,例如abcd
$cfg['Servers'][$i]['password'] =‘網上數據庫密碼’;
5.查找 $cfg['Servers'][$i]['auth_type'] ,將其值設置為phpMyAdmin的登錄方式
$cfg['Servers'][$i]['auth_type'] = ‘cookie’;
三、通過你本地的phpmyadmin路徑(同第二步設置的路徑),通過你的mysql數據庫用戶名密碼即可訪問遠程數據庫。
以上方法本人親測,如果不能解決你的問題,在此說聲抱歉!
---我因為沒看到第一行紅字,直接用了原來的phpmyadmin,所以還要把原來本地的配置注釋了,把下面這些打開,用來開啟cookie。
/$cfg['blowfish_secret'] = 'ba17c1ec07d65003';? // use here a value of your choice
//$cfg['PmaAbsoluteUri']
//$i=0;
//$i++;
//$cfg['Servers'][$i]['auth_type']???? = 'cookie';
//
在config.inc.php中開啟cookie,而不是使用本地數據庫的用戶和密碼。
用本地配的域名在瀏覽器中打開,即(db.com),就可以登錄遠程數據庫了。
這樣就能連上了。
----------------------------------------------------------------------------------------
mysql數據庫 同C#的連接
總結
以上是生活随笔為你收集整理的easyphp mysql_EasyPHP 数据库空密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: spring boot集成阿里云短信服务
- 下一篇: 酷炫动态代码时钟 向你的女神展示吧