(phpmyadmin error)Login without a password is forbidden by configuration (see AllowNoPassword) in ubuntu
2015-10-18 21:21
1101 查看
1.Go to /etc/phpmyadmin/config.inc.php and open it your favorite editor.
2.Search for below line of code
code lines will be looks like :-
And uncomment the //$cfg[‘Servers’][$i][‘AllowNoPassword’] = TRUE; (just remove “//” from start) to make login in phpmyadmin with password
Note :-If you are using older version of php then may be there is another same line of code so you need to uncomment also these lines like
3.Save your file and done try to login your phpmyadmin without password. If you still have issue try to restart your apache services by following command. For more How to restart apache ubuntu
4.If you still facing issue you need reinstall mysql again by running following command through terminal. For more How to install mysql?
And run your phpmyadmin and login without password now you are done you have fixed error Login without a password is forbidden by configuration (see AllowNoPassword) in ubuntu .
2.Search for below line of code
//$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
code lines will be looks like :-
if (!empty($dbname)) { //More code here /* Uncomment the following to enable logging in to passwordless accounts, * after taking note of the associated security risks. */ // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; /* Advance to next server for rest of config */ $i++; }
And uncomment the //$cfg[‘Servers’][$i][‘AllowNoPassword’] = TRUE; (just remove “//” from start) to make login in phpmyadmin with password
/* Uncomment the following to enable logging in to passwordless accounts, * after taking note of the associated security risks. */ $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
Note :-If you are using older version of php then may be there is another same line of code so you need to uncomment also these lines like
if (!empty($dbname)) { // other configuration options $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; $i++; } // another code found here $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
3.Save your file and done try to login your phpmyadmin without password. If you still have issue try to restart your apache services by following command. For more How to restart apache ubuntu
sudo service apache2 restart
4.If you still facing issue you need reinstall mysql again by running following command through terminal. For more How to install mysql?
sudo apt-get install mysql-server mysql-common mysql-client
And run your phpmyadmin and login without password now you are done you have fixed error Login without a password is forbidden by configuration (see AllowNoPassword) in ubuntu .
相关文章推荐
- php 时间函数
- How to install php evn on ubuntu
- vsftpd配置文件详解
- zend framework virtualhost设置方法
- php环境扩展包so
- phpStorm生成php文件不是utf-8格式
- 计算php程序的执行时间
- PHP实现归并排序(合并排序)--算法原理分析
- wamp无法登录phpmyadmin问题
- php项目琐碎总结
- MyViewPagerAdpter 和 MyFragmentPagerAdapter
- php 中常用字符串
- PHP中array_chunk的用法
- 在windows上安装php扩展
- PHP PDO prepare()、execute()和bindParam()方法详解
- yii学习笔记 - model
- php定时运行任务(windows7)
- yii笔记—利用页面表单实现数据的添加
- PHP Yii gii自动生成的模块代码无法执行,报错:Internal Server Error include(Controller.php)
- Smarty标签变量来源