While accessing web configured with mysql 8 and php and you see the following error: CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client OR PHP Fatal error: Uncaught PDOException: PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] It maybe due to PHP devs might have not implemented the MySQL's 8.0 connection protocol ( auth with caching_sha2_password ) within the newer PHP versions. If you want to use mysql >= 8 and you dont care about caching_sha2_password, If you are running a fresh install of mysql 8, just select the second option as shown in the image. Otherwise, you need to configure MySQL 8.0 to run in mysql_native_password mode. As it can't configured in my.cnf, change the user profile as:- ALTER USER 'mysqlUsername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mysqlUs...
Download the Oracle 10g database from the Oracle website. Graphical environment should be installed correctly in the server before installing oracle. Open a terminal command line and Untar the zip file and go to the folder 'database'. From there type the below given command as a user other than root. Better create a user named 'oracle'. ./runInstaller -ignoreSysPrereqs If you find any error as shown below, ---------- Initializing Java Virtual Machine from /tmp/OraInstall2008-08-25_11-53-58AM/jre/bin/java. Please wait... Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-25_11-53-58AM/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory --------- Then install libXp as shown below, yum install libXp And then give the command 'runinstaller' . The software will then open a graphical interface and will check for the system requirements. If it shows some errors in th...
While running a script in Linux, if you encounter an error such as : /bin/sh^M: bad interpreter: No such file or directory The error is due to incorrect format of the script. Most probably when the script is created in Windows and transferred to Linux. The script might have a dos line ending file. The clue is the ^M Inorder to resolve this error: Open the script in Linux using vim editor, enter in vi command mode (key ESC), then type this: : set fileformat = unix Finally save it :x! or :wq! Thats it! Try running the script again and the error would have disappeared.
Comments
Post a Comment