How repair corrupt xampp 'mysql.user' table?

前端 未结 7 541
猫巷女王i
猫巷女王i 2020-12-03 04:57

I used Xampp yesterday to create some simple Web-based utility tool. Today I wanted to continue working on it but xampp control panel gave me some weir errors.

This

7条回答
  •  [愿得一人]
    2020-12-03 05:33

    Step 1. In your XAMPP installation directory find the " \phpMyAdmin\libraries\ "

    Step 2. In above folder, find this file > " check_user_privileges.inc.php "

    Step 3. Open above file in a code editor of your choice and find line number 28
    " $checkUserPrivileges->analyseShowGrant(); "

    Step 4. Delete Line Number 28 and add below code instead:

    $GLOBALS['is_create_db_priv'] = true;
    $GLOBALS['is_reload_priv'] = true;
    $GLOBALS['db_to_create'] = '';
    $GLOBALS['dbs_where_create_table_allowed'] = array('*');
    $GLOBALS['dbs_to_test'] = false;
    $GLOBALS['db_priv'] = true;
    $GLOBALS['col_priv'] = true;
    $GLOBALS['table_priv'] = true;
    $GLOBALS['proc_priv'] = true;
    

    Step 5. Save file and restart XAMPP.

提交回复
热议问题