EasyPHP 16.1 DevServer Fresh install mysql issue - mysql

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.

Related

root#localhost access denied for MySQL on mac system restart

I have Mac and installed MySQL in it for db connections and currently I am using laravel 8.
Everything runs smoothly until I restart or turn off my system .... The problem it causes is .. it throws me an error ...
i.e root#localhost access user denied for user
But the strange part is I haven't changed it anywhere neither I touched MySQL nor any manipulations in settings but somehow it is giving me this error....
For the solution I have searched and tried to recover my password and at last I had to delete all the db and alter my root password but it resulted in all data deletion ...Now I was working fine but again as I restarted my machine it again showed me that error.... Now my question is what actually happening here..
The problem in short is as soon as I restart my system my MySQL password starts giving an error having wrong password everytime..
So any helps or any hints what actually the problem is ...Maybe there is some mis configuration or settings issue .
Thanks in advance

MySQL Change Password command run in MySQL on Ubuntu Server results in strange Character Changes in terminal

I'm running an Ubuntu Server with MySQL in VirtualBox and trying to change the password for a user.
I run:
sudo mysql -u root -p
to access MySQL. At this point, and with any other commands not trying to see a user's password, everything is working.
In MySQL ( ) I run:
SELECT * FROM mysql.user;
After I run this, the entire display and terminal change. The output and command line are both displaying strange characters. I run this command which works just fine. What gives?
SELECT user FROM mysql.user;
Here are the before and after screen shots:
Screen Shot Before,
Screen Shot After
Any help would be greatly appreciated. I have no clue why this is happening. Is this an Ubuntu thing, a MySQL thing or a VirtualBox thing? I'm a noob so this is just an uninformed theory but could it have something to do with MySQL authenticated_string and something to do with hashing?
It actually creates a change that persists even upon typing exit and hitting Enter, exiting MySQL and back to the Ubuntu command line where the weird characters are still showing.
EDIT:
I was following a blog tutorial and inserted <db-password> as the password when creating the MySQL user. I was supposed to insert an actual new password instead but figured I'd just use that. Are the <, - or > characters that I used when setting the user's MySQL password maybe causing this?
I believe this was a character encoding issue in MySQL because SELECT * FROM mysql.user WHERE user = 'root'; doesn't have the same issue. Because of that, I believe the issue only occurs at that one user's password data point where the <, - and > characters were used. Maybe someone else can provide a better answer explaining more thoroughly why this occurs. Specifically, I'm curious as to how this issue in MySQL is then able to affect the appearance of the Ubuntu Command Line once the MySQL shell is exited.

EasyPhp - Receive "Missing Plugin" Error When Attempting to Grant Permissions

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!

MySQL works only with --skip-grant-tables and can't go away from that. Linux

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

MySQL Installer: Fails at creating user accounts

Currently trying to install and start a MySQL Server on my machine. I'm using the original, actual Installer/Wizard. After filling out all fields, setting a root passwords and also telling to create one user with the password on localhost, the application fails at the step "Creating user accounts".
The log says:
Attempting to Add New MySQL Users Authentication to host 'localhost'
for user 'root' using method 'mysql_native_password' failed with
message: Access denied for user 'root'#'localhost' (using password:
YES) Ended configuration step: Creating user accounts.
Interesting to note, I've done this on a testing device as well as on a fresh virtual machine. I've used different data and names actually, but with the same result >_< What could I be doing principally wrong?
Thanks in advance!
EDIT: Sort of solved... I re-downloaded the database alone and manually created users. Guess that's the better way when being about to learn SQL properly anyways.
That error blocks your installation - although your MySQL server is running - it keeps you from installing the samples and examples. However, if you ignore installing these samples and examples, you can start MySQL Workbench. Moreover, the root account will be available with the password you have set during the install procedure (using Windows). Just launch the Workbench.
I went back to the Accounts and Roles tab> "edit" on my user and my account said I needed a user name> reentered User name> save> next> rename MySQL> Execute== ran fine and finished install.
This was the easy way with all other updates for co-programs done already.
For anyone still having trouble, a simple solution for me was making sure my user names and passwords did not contain special characters such as \ > ~, and so on. Characters such as # and ! should work fine.