MySQL troubleshooting

This task describes a workaround for the case when a console using the MySQL database fails with message "Database extension 'mysqli' not found." This problem occurs on Red Hat Linux version 6.x when the following file is used:
  1. Check for missing libraries and permissions.
    Use the ldd command. Example response:
     ldd: warning: you do not have execution permission for `./' =>  (0x00413000) =>  not found
    	............. => not found =>  not found
  2. Do one of the following tasks so that the library can be found.
    • Append the full path of to LD_LIBRARY_PATH.
    • Copy to /usr/lib.
  3. Add links to older libraries.
    You need to add links to older libraries manually. Example:
    ln -s /usr/lib/ /usr/lib/
    ln -s /usr/lib/ /usr/lib/
  4. Restart the console.
    A restart is required.