php、MySql运行环境
这里介绍一个集成环境 XAMPP。
XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,解压缩,启动即可。
下载地址:
http://www.apachefriends.org/zh_cn/xampp.html
到目前为止,XAMPP 共有以下四种版本:
(1)适用于 Linux 的 XAMPP
(2)适用于 Windows 的 XAMPP
(3)适用于 Mac OS X 的 XAMPP
(4)适用于 Solaris 的 XAMPP
您只需下载并解压 XAMPP 就能完成安装,且对 Windows 的注册表不做任何改动(但使用 XAMPP 的 Windows 安装包时除外). 您也无需编辑任何配置文件。没有更简单的方法了吧!
软件包中包含了一些范例程序可供检测 XAMPP 是否正在运行:一个小型 CD 收集程序(基于 PHP 和 MySQL)、一个小型留言本程序(用 Perl 写成)和另外几个示例工具。
如果您觉得不再需要 XAMPP 了,只需直接将其目录删除,就完成卸载了。
如果您使用 XAMPP 的 Windows 安装包, 建议您调用系统的“添加或删除程序”功能执行卸载。 这是因为每种安装文件在执行安装过程时都会在注册表中留下痕迹,XAMPP 的安装包也不例外。
相关文档:
Explain MySQL architecture
. - The front layer
takes care of network connections and security authentications, the
middle layer does the SQL query parsing, and then the query is handled
off to the storage engine. A storage engine could be either a default
one supp ......
一个简单示例--
1,准备:MySQL数据库驱动包【mysql-connector-java-5.1.10-bin.jar】导入
2,创建测试连接主程序
package mysqlConnection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
public class JdbcDemo {
public static void main(String[] args) {
......
linux下apache+php安装常见问题 configure: error: Unable to find libgd.(a|so)
如果使用的是ubuntu或debian就很简单了,直接sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd 就基本上搞定,但是用源代码安装还是很麻烦~
wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0 ......