I've just installed EasyPHP and in the MySQL section I created a new user called "foo" and checked the box to give it all privileges. When I click on the tab to manage the MySQL user accounts the user "foo" is there. But it shows foo's level of privileges only as "USAGE", and when I mouseover that word it says, "no privileges".
So I tried to update the privileges for foo. But when I try to edit them I get the error
"#1524 - Plugin '*E394918EB0645561038DD951D0CABA8042DDFE14' is not
loaded".
Interestingly, when I go back to the tab for user accounts and mouseover the "root" user it states
"Includes all privileges except GRANT"
Maybe this is why it can't grant "foo" any privileges?
Any idea how to give "foo" all privileges? I'd like to use that as my development account.
PS At the bottom of that page there is a message that says: "
Note: phpMyAdmin gets the users' privileges directly from MySQL's
privilege tables. The content of these tables may differ from the
privileges the server uses, if they have been changed manually."
Could this be a possible solution, and if so, could someone share a link that shows how to change the MySQL privilege table manually?
OK, after hours of searching around I'm getting much closer to a solution.
It turns out that there is an error in the EasyPHP installation package that is related to changes from earlier versions of MySQL. Here is the workaround:
(1) Open the file:
:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\dbserver\mysql5711x86x160717165359\my.ini
(2) Add this line at the end and then save the file:
show_compatibility_56 = on
(3) Restart the MySQL server from the EasyPHP dashboard.
Oh yes, I also ran the following upgrade from the MySQL command line:
mysql_upgrade -u root -p
This has cleared up some errors which showed up in other tabs that I didn't mention, such as not having permission to access the server status and not being able to get a list of the MySQL variables.
I still would like to solve the original problem but have spent too much time on this initial stage to work on it tonight. If anyone has info that please post.
I had the same issue. What I did to fix it was quite simple.
Exit EasyPhp.
Navigate to directory **\EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86xxx\data**
Find and remove the following files with ext .frm & .ibd
innodb_index_stats
innodb_table_stats
slave_master_info
slave_relay_log_info
slave_worker_info
After navigate to directory \EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86xxx\bin
Open command prompt and type
mysql_update -u root -p
<BLANK>
Afterwords you should see MySQL update, aswell as some of easyphp's files.
Exit mysql terminal, and start EasyPhp again.
Hope that helps!
Related
I was looking on almost every solution which I found on the web, but I still have this issue.
I can connect to mysql (either in terminal or phpmyadmin) when I run --skip-grant-tables, but without it it is totally not working (I am getting 1045 access denied).
I found this: MySQL only works with: skip-grant-tables but I can't run it, because I can only access mysql with --skip grant tables.
Any solutions? I really googled and tried a lot...
from a glance seems it's mysql user permissions problem. if, say, you connect with uname userone, it's just that userone does not have certain permissions on the tables and therefore you have to pass 'skip-grant-tables' option. easiest approach - log as root (admin or whatever god-like-mysql user) and grant your normal user (userone) the missing permissions. See this, there is example under "Account names and password"
http://dev.mysql.com/doc/refman/5.7/en/grant.html
I've done a fresh install of 16.1 on two machines and ran into the same issue on both so I'm going to assume its not just me.
Windows 10 - Latest updates and all.
First, I'm getting fatal javascript errors all over phpmyadmin in firefox but thats a whole other issue (maybe).
I set up a global root user that I use to import databases from remote servers. My name rick#'%' by running the following command:
grant all privileges on . to rick#'%' identified by 'somepass';
Success. Ok great.
Try to run an import. Fails permissions.
I go and look at the mysql.user table and I see at least one problem the other is just plain weird.
1 - All privilege fields are ticked to N and not Y.
2 - The weird one, I have my password hash saved in the "plugin" column and not the "authentication_string" column. I'll get to why thats kinda weird to me in a minute.
So anyway I manually edit the user, changing all N to Y and move the password string to to the authentication string field.
flush privileges
Try to import again - it works.
Ok great, now I need to set up the user account for that database so again, I:
grant all privileges on dbname.* to dbuser#localhost identified by 'somepass';
Ok seems to work, I can load the site and browse... that is until I have to restart mysql or reboot my machine or something. Then once that happens I try to run the website and I get hit with this error:
mysql said: Unknown plugin '*HFDGYHUFJEFGHOIFJEFLEJIJCFIRG" bla bla bla
Ok.... I go and look at the user table and low and behold the password string is in the plugin field... but wait a minute, how was this even working at all up until the restart? Thats just confusing as hell.
Anyway, again, I move the password string to the authentication string field and flush privileges and boom it works.
SO I ask simply, why the is the fresh install of mysql on easyphp devserver 16.1 so funged up?
Is anyone else having issues like this?
Is there any way to manually fix this?
One thing I found weird was there is still a password field in the mysql.user table. Is this the problem? I thought they got rid of that column? maybe I'm wrong IDK.
So it turns out the mysql service was being delivered with the package in a state where it needed to have the "mysql-upgrade" command ran on it. I had to run the command to fix another issue I was having and after I did that user passwords are saved in the proper field. I would post the full command I used but that was a few weeks ago and I dont have it handy right now.
New to php, mysql and apache, but not to html/css and web design. Have downloaded MAMP to create new joomla website offline (also fairly new to joomla).
Following instructions in MAMP documentation and dwuser.com/education/content/why-you-need-a-testing-server-and-how-to-do-it/ and other sources (though am wary of non-official sites and years old info). It seems all is installed correctly (the message says so).
Trying to change the password of the mysql root user via Terminal app (inexperienced in console work too, sorry). After entering the correct text and substituting new password I am prompted for a password. There's a grey upright box with a white circle at the spot where I'd enter this old password ('root'). If I switch away from the terminal window the box becomes an outlined version.
Have tried limiting the new pw to all lowercase (12 characters), putting in computer admin password, and also searching to find out what the box means (unsuccessfully).
Also tried continuing setup by changing the password in the config.inc.php file (just in case) but afterwards password error messages came up.
Searching on the password error part has shown others have had problems but the replies have been beyond me, hopefully my knowledge will advance in time.
I hope some kind person will point me in the right direction... please? (In fairly simple terms too please).
Many thanks in advance.
.....
more info via edit
In the console I am keying
/Applications/MAMP/Library/bin/mysqladmin -u root -p password [NewPassword]
and substituting a new password (random 12 character) for [NewPassword]. After 'enter', the following line shows
Enter password: "grey sq box here"
and at this point nothing can be entered in the console.
So I know something's already amiss.
Thanks for your help...
I'll try to explain as detail as possible.
I believe you can execute the terminal.
0.Move to mampstack folder
$cd /Applications/MAMP/
stop mysql service
$sudo ./ctlscript.sh stop mysql
Password:"your_macbook_user_password"
2.Command not to look at grant table(which requires password input)
$/Applications/MAMP/Library/bin/mysqld_safe --skip-grant-tables &
3.You can enter mysql root directly due to 2nd process
mysql -u root mysql
change the password with the update query
mysql>update user set password=password('new-passwd') where user = 'root';
quit the mysql
mysql>flush privileges;
mysql>quit
restart the mysql
service mysqld restart service mysql restart Try both
wamp local
Lost contact with all dbases except one which I can log in to. In that DB my password is on a databas level and not a grant user. I have checked all earlier answers. First I did get error 1045 and took the advice given to use "cookie" instead of config in phpmyadmin config.inc
Logged in to phpmyadmin and got two other errors
needs a secret blowfish..??
Something wrong in config file. Doesn't say which and no more info
Fixed them(realy dont know how)
Have made The grant privileges statement for root.
Now I can come in with root user bud also every other user with or without password.
Then I can see my databases and tables(only titles)
I have checked that my DB files are still under the folders(msql bin data)
Got a message Before about something wrong in the config file. Checked it several times(config.inc.php) without seeing anything suspect.
Please... What to do?
I'm not really sure what your question is. It sounds like you worked through items 1 and 2. Sounds like you're logging in as root (as expected) and as the anonymous user (that's "every other user with or without password"). You can restrict that by removing the anonymous user (log in as root and click on the Users tab).
I installed EasyPHP 5.3.6, opened PhpMyAdmin, created a new databased and set password for root user. "Naturally" following that I was unable to login into PhpMyAdmin anymore, getting the infamous 1045 Access Denied error.
I tried everything I could find - setting password (in two places) in config.inc.php doesn't seem to work. I also tried changing AllowNoPassword to true (or false, whichever one it was not originally), that didn't do anything. I tried going through phpmyadmin/scripts/signon.php and enter the password there (it's the correct password, I saved it in my password manager) and couldn't login either. I also tried following instructions for resetting MySQL password I found but they used a mysqld-nt.exe which I didn't find in my installation. I also tried uninstalling EasyPHP and reinstalling it (and before doing that I used ccleaner to remove any registry issues it found, though admittedly there was nothing there about mysql) and it of course retained the "incorrect password" and wouldn't let me login.
Short of reformatting my harddrive I'm not sure what else I can do. (How does it keep the broken settings after uninstall??)
Any help would be appreciated.
I also would like to understand why doing something supposedly good to protect your database turns out to be such a painful procedure that it is actually recommended to leave the root user without a password? sigh
Go to EasyPHP-12.1\modules\ folder. Open folder for PhPMyAdmin version you are using (in my case it was phpmyadmin356x130206112511). Find file config.inc.php. Right click edit with Notepad.
Under line:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
paste this line:
$cfg['Servers'][$i]['password'] = 'YOURPASSWORD';
where YOURPASSWORD is your desired password.
Save file and refresh the "Local Web" page.
Clearing cache allowed me to get to phpmyadmin after re-installing easyphp. Thanks to Danae above.
I just killed mysql and restarted, it worked fine for me.
Happened to me also. Unfortunately my internet decided to go down at the same time and I was unable to google this page. The "help" that comes up when you are denied access is really lame ( but hat's off to easyphp creator. ) The "help" tells you " check your configuration files"