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 ......
I found a solution to anyone else who may be having this problem.
First start mysql using skip grant tables
root@ns1 [/var/lib/mysql/mysql]# service mysql start --skip-grant-tables
Starting MySQL [ OK ]
now with mysql started, you can repair the mysql/user table
root@ns1 [/var/lib/mysql ......
MySQL中有很多的基本命令,show命令也是其中之一,在很多使用者中对show命令的使用还容易产生混淆,本文汇集了show命令的众多用法。
a. show tables或show tables from database_name; -- 显示当前数据库中所有表的名称。
b. show databases; -- 显示mysql中所有数据库的名称。
c. show columns from table_nam ......
一、前提
我们需要一个 Web 服务器来解析用 PHP 创建的页面并把它们显示到浏览器。本文中使用的是 Apache2。但是,任何 Web 服务器都可以满足要求。
要利用本文中介绍的一些调试技术,需要安装 Eclipse V3.1.1 和插件 PHPEclipse V ......
一、引号定义字符串
在PHP中,通常一个字符串被定义在一对引号中,如:
'I am a
string in single quotes'
"I am a string in double
quotes"
PHP语法分析器是用成对的引号来判断一个字符串的。因此,所有字符串必须使用同一种单或者双
引号来定义开始和结束。例如,下面的字串定义是不 ......