php The error reported by the mysql module is because the path of libmysqlclient.so installed under Ubuntu12.04 is abnormal. The solution is to add the real path to the mysql.lsp file.
The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer
What should I do if the php mysql module reports an error? An error occurred when using the Artful MySQL module
always reports an error:
root@gitlab:/opt# newlisp newLISP v.10.6.0 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (load "/opt/mysql.lsp") ERR: string expected in function import : libmysqlclient
It turns out that the path of libmysqlclient.so installed under Ubuntu 12.04 is abnormal. Use find/-name to find it and add the real path to
;;; Find the libmysqlclient library on this system (setf is-64-bit nil) (let ((paths '("/usr/lib/libmysqlclient.so" "/usr/lib/x86_64-linux-gnu/libmysqlclient.so" ;;here "/usr/lib64/mysql/libmysqlclient.so" "/usr/local/mysql/lib/libmysqlclient.dylib" "/opt/local/lib/libmysqlclient.dylib" "/sw/lib/libmysqlclient.dylib")))
in the mysql.lsp file is OK, the module is loaded successfully:
> (load "/opt/mysql.lsp") MAIN
However, an error is reported when connecting to the database. It turns out that it has not kept up with the pace of newllisp 10.6.0. Now get the latest untested code:
git clone https://gist.github.com/10490156.git > (load "/opt/10490156/mysql.lsp") MAIN > _MYSQL:is-64-bit true > (setf db (Mysql)) (Mysql 10710960) > (:connect db "localhost" "root" "770328" "mysql") true > (:query db "show tables") (MysqlResult 10812080) > (exit)
It seems to be available, but we have to wait for the author to complete the testing.
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4502
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if the php mysql module reports an error?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver CS6
Visual web development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1
Easy-to-use and free code editor
