Error loading schema content

I open workbench and connect to a local database on XAMPP and when open the connection the schema show the error message: "tables could not be fetched"

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

gg0092's user avatar

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

gg0092's user avatar

gg0092gg0092

331 silver badge6 bronze badges

2 / 2 / 0

Регистрация: 29.05.2018

Сообщений: 10

1

19.05.2019, 14:28. Показов 1983. Ответов 6


Здравствуйте. Обзавелась новой техникой для работы и учебы, но при работе в Workbenc возникла проблема с подключение удаленно к БД. Все данные я вожу правильно, сам сервер отвечает(для проверки есть старый ноутбук, на котором раньше велась вся работа и так же есть установленный Workbench). При установке и работе на старом ноутбуке не было такой проблемы, все подключалось без ошибок.
*Сама ошибка:
14:06:38 Error loading schema content Error Code: 1146 Table ‘performance_schema.user_variables_by_thread’ doesn’t exist
Искала в интернете решение, но как то не удачно.

Миниатюры

Ошибка при подключение к БД в Workbench
 

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



231 / 163 / 54

Регистрация: 26.10.2014

Сообщений: 928

19.05.2019, 18:19

2

1. выполните show tables
2. слева внизу есть вкладка schemas, кликните ее
3. покажите скрины



1



2 / 2 / 0

Регистрация: 29.05.2018

Сообщений: 10

19.05.2019, 20:15

 [ТС]

3

я конечно извиняюсь за свою не дальнозоркость и в отсутствие, наверно, должного внимания к учебному материалу, но зато есть к чему стремиться мне еще.
первый пункт выполнить я все таки не смогла, так как на лекция материал преподают в «сыром» виде, но со вторым справилась, и с третьим подавно.
но ошибка как бы есть, и я не знаю, не будет ли она мне мешать в дальнейшим.

Миниатюры

Ошибка при подключение к БД в Workbench
 



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



Понравилась статья? Поделить с друзьями:
  • Error loading resource file dota 2
  • Error loading resource 0x00003b01
  • Error loading python lib
  • Error loading python dll как исправить
  • Error loading python dll python39 dll не найден указанный модуль