How do I compiling MySQL Clients on Windows

From: Date: Fri, 04 Jul 2003 10:50:00 +0000
Subject: How do I compiling MySQL Clients on Windows
Groups: php.install 
Request: Send a blank email to php-install+get-11217@lists.php.net to get a copy of this message
Help!!! I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also read though the postings. The problem is that we have to use mysql clients which comes with mysql to use PHP. I read following mysql docs, and I don't have any clue, anyone? ----------------------------------------------------------------------- 2.6.2.6 Compiling MySQL Clients on Windows In your source files, you should include `windows.h' before you include `mysql.h': #if defined(_WIN32) || defined(_WIN64) #include <windows.h> #endif #include <mysql.h> You can either link your code with the dynamic `libmysql.lib' library, which is just a wrapper to load in `libmysql.dll' on demand, or link with the static `mysqlclient.lib' library. Note that as the mysqlclient libraries are compiled as threaded libraries, you should also compile your code to be multi-threaded! ------------------------------------------------------------------------ PHP 5.0x installation on W2K (apache module) Here is my prog. and conf. php-5.0.0b1-Win32.zip mysql-4.0.13-win.zip apache_20.046-win32-x86-no_src.msi 1. edit httpd.conf LoadModule php5_module C:\php\sapi\php4apache2.dll # # To use PHP scripts # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps 2. copy c:\php\php4ts.dll to c:\winnt\system32 3. edit c:\winnt\php.ini ; Windows: "\path1;\path2" include_path = ".;c:\php\dlls" ; Directory in which the loadable extensions (modules) reside. extension_dir = "c:\php\extensions\" upload_tmp_dir = c:\tmp session.save_path = c:\tmp

« previous php.install (#11217) next »