启动Apache,MySql并结合上PHP :-)
2004-12-21 11:47
459 查看
启动Apache的命令:apachectl start
启动MySql的明令:/etc/rc.d/init.d/mysqld start
PHP的Hello World:
<?
echo "Hello World !";
//see the php infomation
phpinfo();
?>
登录MySql:mysql -h 127.0.0.1 -u root -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database example;
Query OK, 1 row affected (0.00 sec)
mysql> use example;
Database changed
mysql> create table tbl (idx integer(3),UserName varchar(30),LastName varchar(50),FreeText varchar(100));
Query OK, 0 rows affected (0.01 sec)
mysql> show columns from tbl;
+----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+-------+
| idx | int(3) | YES | | NULL | |
| UserName | varchar(30) | YES | | NULL | |
| LastName | varchar(50) | YES | | NULL | |
| FreeText | varchar(100) | YES | | NULL | |
+----------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
Oh yeah ~~ , 这样环境就建立起来了,
启动MySql的明令:/etc/rc.d/init.d/mysqld start
PHP的Hello World:
<?
echo "Hello World !";
//see the php infomation
phpinfo();
?>
登录MySql:mysql -h 127.0.0.1 -u root -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database example;
Query OK, 1 row affected (0.00 sec)
mysql> use example;
Database changed
mysql> create table tbl (idx integer(3),UserName varchar(30),LastName varchar(50),FreeText varchar(100));
Query OK, 0 rows affected (0.01 sec)
mysql> show columns from tbl;
+----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+-------+
| idx | int(3) | YES | | NULL | |
| UserName | varchar(30) | YES | | NULL | |
| LastName | varchar(50) | YES | | NULL | |
| FreeText | varchar(100) | YES | | NULL | |
+----------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
Oh yeah ~~ , 这样环境就建立起来了,
相关文章推荐
- 如何绿色化启动apache,php,mysql,fukezukka,tomcat
- apache mysql 正常启动 打开php网页延时
- MAC 下启动apache,php,mysql
- Subversion+svnmanager结合Apache+Mysql+Php的源码安装与配置实践
- mac启动mysql,apache,php
- Ubuntu16.04 关闭apache/mysql/php的开机启动
- PHP SAPI CLI启动流程结合mysql扩展源码学习
- centos LAMP第一部分-环境搭建 Linux软件删除方式,mysql安装,apache,PHP,apache和php结合,phpinfo页面,ldd命令 第十九节课
- windows下mysql,apache和php结合
- win7下安装apache+mysql+php后服务器启动失败解决
- 解决php工具箱(phpStudy)Apache启动成功,MySql无法启动的问题
- Apache,PHP,MySQL的单独安装以及使用时的相关配置(主要结合之前博客配合安装php和mysql)
- 运用yum快速安装Apache+PHP+Tomcat(JSP)+MySQL
- Windows下手动搭建Apache 2.4.25+PHP 5.6.30+MySQL运行环境
- windows下 简单配置PHP + apache +mysql
- 【已测试非常好!】Apache+PHP+MySQL环境搭建
- 在Mac下配置wordpress开发环境:Apache+php+MySql+Wordpress
- Linux配置apache+php+mysql
- 在Ubuntu下安装Apache、PHP、MySQL
- 使用Wamp配置Bugfree,Apache+MySQL+php,局域网访问