(phpmyadmin error)Login without a password is forbidden by configuration (see AllowNoPassword) in ubuntu

1.Go to /etc/phpmyadmin/config.inc.php and open it your favorite editor.

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 .

时间: 2024-08-01 20:43:01

(phpmyadmin error)Login without a password is forbidden by configuration (see AllowNoPassword) in ubuntu的相关文章

标准差(standard deviation)和标准误差(standard error)你能解释清楚吗?

by:ysuncn(欢迎转载,请注明原创信息) 什么是标准差(standard deviation)呢?依据国际标准化组织(ISO)的定义:标准差σ是方差σ2的正平方根:而方差是随机变量期望的二次偏差的期望,这个就不用解释了. 什么是标准误差(standard error)呢?看了些文献,有的还是大牛的,定义都不统一,通常来说有两种定义方式: 1.样本容量为的标准误差是样本的标准差除以.ps:这里还有人用样本的标准差除以n来作为标准误差(预计是弄错了,只是标准误差是基于整体均值来预计标准差,所以

标准差(standard deviation)和标准错误(standard error)你能解释一下?

by:ysuncn(欢迎转载.转载请注明原始消息) 什么是标准差(standard deviation)呢?依据国际标准化组织(ISO)的定义:标准差σ是方差σ2的正平方根:而方差是随机变量期望的二次偏差的期望,这个就不用解释了. 什么是标准误差(standard error)呢?看了些文献.有的还是大牛的,定义都不统一,通常来说有两种定义方式: 1.样本容量为的标准误差是样本的标准差除以.ps:这里还有人用样本的标准差除以n来作为标准误差(预计是弄错了.只是标准误差是基于整体均值来预计标准差,

Support Vector Machine (3) : 再谈泛化误差(Generalization Error)

在SVM第一节中我们有简单涉及到泛化误差这个概念.在SVM中,使得Margin最大的解即为使泛化误差最小.那么泛化误差到底是什么,为什么Margin最大时泛化误差就最小?下面我们来探究一下. 什么是泛化误差?Wiki给出这样一个描述:generalization error (also known as the out-of-sample error) is a measure of how accurately an algorithm is able to predict outcome v

django03_表单(forms.ModelForm)login后台

一,创建一个表单创建一个Form表单有两种方式:第一种方式是继承于forms.Form,的一个子类,通过在form中选择你需要的类型来规定表单之中字段的类型 class LoginForm(forms.Form):     username = forms.CharField(max_length=15,                                 min_length=5,                                 #onblur = "Check(t

linux生产环境精华优化实战配置(亲测)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 编写人:陈飞 邮箱:[email protected] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CentOS系统安装之后并不能立即投入生产环境使用,往往需要先经过我们运维人员的优化才行.在此讲解几

python之路1(初识python)

python简史: python我认为特性就是简洁,灵活,高效. python重要版本: python1991年问世, python2.4:2004,同年django框架诞生. python2.6:2008年推出. python2.7:2010年推出. python3.0:与2.6并行推出,由于python推行多年底层垃圾积攒过多(好比网站运行多年,有大量的废弃函数,文件)使语言逐渐的失去其简洁的特性.所以python作者对python进行优化,底层进行众大的改动.使其2.4之前的python程

集成方法:渐进梯度回归树GBRT(迭代决策树)

http://blog.csdn.net/pipisorry/article/details/60776803 单决策树C4.5由于功能太简单,并且非常容易出现过拟合的现象,于是引申出了许多变种决策树,就是将单决策树进行模型组合,形成多决策树,比较典型的就是迭代决策树GBRT和随机森林RF.在最近几年的paper上,如iccv这种重量级会议,iccv 09年的里面有不少文章都是与Boosting和随机森林相关的.模型组合+决策树相关算法有两种比较基本的形式:随机森林RF与GBDT,其他比较新的模

mybatis与spring整合(基于配置文件)(转)

mybatis与spring整合(基于配置文件) 本文主要介绍了如何将mybatis和spring整合在一起使用,本人使用的是mybatis3.05 + spring3.1.0M2 ,使用dbcp作为数据库连接池. 1.编写数据访问接口(UserDao.java) package com.mybatis; publicinterface UserDao { publicint countAll(); } 2.编写数据访问接口映射文件(UserDaoMapper.xml) <?xml versio

随机森林(Random Forest)详解(转)

来源: Poll的笔记 cnblogs.com/maybe2030/p/4585705.html 1 什么是随机森林?   作为新兴起的.高度灵活的一种机器学习算法,随机森林(Random Forest,简称RF)拥有广泛的应用前景,从市场营销到医疗保健保险,既可以用来做市场营销模拟的建模,统计客户来源,保留和流失,也可用来预测疾病的风险和病患者的易感性.最初,我是在参加校外竞赛时接触到随机森林算法的.最近几年的国内外大赛,包括2013年百度校园电影推荐系统大赛.2014年阿里巴巴天池大数据竞赛