First, locate the directory of which Xampp is installed at.
In linux you can just type this in a terminal:
whereis xampp
In my case (btw I use arch, jk) it was located at /opt/lampp/bin . If you’re using windows, you may find it under a different location, like in C:Program Filesxamppbin
Next, locate the file mysql_upgrade and execute it as an administrator or a sudo.
If you’re using Linux:
cd /opt/lampp/bin
then sudo ./mysql_upgrade
According to MySQL documentation:
Each time you upgrade MySQL, you should execute mysql_upgrade, which
looks for incompatibilities with the upgraded MySQL server: It
upgrades the system tables in the mysql schema so that you can take
advantage of new privileges or capabilities that might have been
added. It upgrades the Performance Schema, INFORMATION_SCHEMA, and sys
schema. It examines user schemas.
So I believe mysql_upgrade should resolve the problem. It worked for me before.
More on mysql_upgrade here:
4.4.5 mysql_upgrade — Check and Upgrade MySQL Tables
I have created a user ‘user1’@’localhost’.
then granted all privileges to the user1 with grant option. any help?
then I go and make a connection of user1 to the database and it keeps throwing error 1142 & 1370.
I have also tried to specifically grant the select & execute privilege as well. and refresh everything in MySQL. However, it still gives the same error.
here is the error.
Error loading schema content Error Code: 1142 SELECT command denied to user ‘book’@’localhost’ for table ‘user_variables_by_thread’
Error Code: 1370. execute command denied to user ‘book’@’localhost’ for routine ‘e2.min’ 0.000 sec
is there anything that I have missed or not getting correct?
asked Oct 15, 2019 at 16:45
gg0092gg0092
331 silver badge6 bronze badges
well. apparently granting the privileges using the root account did not work. however, in MySQL, going under ‘administration’ > «users and privileges’ and then granting all the privileges from there solved the error and now it allows ‘user1’ to perform any task on the database.
answered Oct 15, 2019 at 19:01
gg0092gg0092
331 silver badge6 bronze badges
2 / 2 / 0 Регистрация: 29.05.2018 Сообщений: 10 |
|
1 |
|
19.05.2019, 14:28. Показов 1983. Ответов 6
Здравствуйте. Обзавелась новой техникой для работы и учебы, но при работе в Workbenc возникла проблема с подключение удаленно к БД. Все данные я вожу правильно, сам сервер отвечает(для проверки есть старый ноутбук, на котором раньше велась вся работа и так же есть установленный Workbench). При установке и работе на старом ноутбуке не было такой проблемы, все подключалось без ошибок. Миниатюры
__________________
0 |
231 / 163 / 54 Регистрация: 26.10.2014 Сообщений: 928 |
|
19.05.2019, 18:19 |
2 |
1. выполните show tables
1 |
2 / 2 / 0 Регистрация: 29.05.2018 Сообщений: 10 |
|
19.05.2019, 20:15 [ТС] |
3 |
я конечно извиняюсь за свою не дальнозоркость и в отсутствие, наверно, должного внимания к учебному материалу, но зато есть к чему стремиться мне еще. Миниатюры
0 |
231 / 163 / 54 Регистрация: 26.10.2014 Сообщений: 928 |
|
19.05.2019, 20:31 |
4 |
Ошибку надо устранить.
0 |
2 / 2 / 0 Регистрация: 29.05.2018 Сообщений: 10 |
|
19.05.2019, 21:22 [ТС] |
5 |
Навряд ли, сервером я работают как студент-пользователь, у меня нет прав root.
0 |
231 / 163 / 54 Регистрация: 26.10.2014 Сообщений: 928 |
|
20.05.2019, 09:53 |
6 |
Версия mysql в настройках соединения и по факту совпадает?
0 |
2 / 2 / 0 Регистрация: 29.05.2018 Сообщений: 10 |
|
20.05.2019, 21:03 [ТС] |
7 |
Да, все совпадает.
0 |