MySQL Workbench “fetching…” — cannot browse DB

前端 未结 7 869
-上瘾入骨i
-上瘾入骨i 2021-01-12 03:19

I\'ve been having a lot of issues lately, basically since the last time I upgraded XAMPP for OSX (v1.7.3) and/or my MySQL GUI tools. Using MySQL Workbench (v5.2.44), I can

相关标签:
7条回答
  • I set Authenticated Users with all privileges to the var/folders/y2/ For me work fine ;)

    Before the process I removed authenticated users privileges.

    0 讨论(0)
  • 2021-01-12 03:54

    I had that error with MySQL 8, win10. I've noticed that this line Where the error was

    Was leading to another directory trying to find the my.ini file. Looked for it, found it in that directory, changed it. Opened Workbench, clik on every item that was in gray, and turned it into black and that's it!! Ok now!!

    0 讨论(0)
  • 2021-01-12 03:56

    Close and reopen Workbench. it worked for me.

    Stop server.

    close workbench window

    start server

    open workbench window

    worked for me .. windows 64bit

    0 讨论(0)
  • 2021-01-12 03:57

    The link above to mysql_upgrade did not solve my problem directly, but it did lead me to examine my mysql error file, which ultimately led me to the solution. I noticed several lines like this in the error file (located at [xampp root]/var/mysql/[dbname].err):

    /Applications/XAMPP/xamppfiles/sbin/mysqld: Can't create/write to file 
        '/var/folders/y2/37h93r_931sdfpcr7vnc83380000gn/T/ibigNFFi' (Errcode: 13)
    

    That led me to this page in the MySQL docs which states that you should explicitly set the temp folder for MySQL. I double-checked my config file ([xampp root]/etc/my.cnf) and saw this, which looked fine:

    [mysqld]
    tmpdir = /Applications/XAMPP/xamppfiles/temp/
    

    However, looking back at the error log, I also noticed this:

    Warning: World-writable config file '/Applications/XAMPP/xamppfiles/etc/my.cnf' is ignored
    

    Duh. The config file was getting ignored, so the configured temp folder was not getting used (I have no clue why the file was world-writeable...). I edited permissions on the my.cnf file which was 777 and simply removed the "Everyone|write" permission (now 775 / -rwxrwxr-x), reloaded everything, and now everything works.

    Not a very intuitive symptom for the ultimate fix, so hopefully this helps someone else.

    0 讨论(0)
  • 2021-01-12 03:58

    If you have MAMP instead of XAMP the solution above won't work for you. Open MAMP then on the top menu go to Tools->Upgrade MySQL databases. Now open Mysql Workbench and it should list all your tables correctly

    0 讨论(0)
  • 2021-01-12 04:04

    The following command worked for me on windows:

    C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql_upgrade.exe -u root -p --force

    If the root password is not set, you might need to do this before you run the command above:

    mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('something');

    0 讨论(0)
提交回复
热议问题