当前位置: 动力学知识库 > 问答 > 编程问答 >

Linux & Php : server with MySQL database with terminal

问题描述:

Hello I'm new in Linux and sorry if this subject already exist,

I know that with php and Linux you can start a local server with the commande

php -S 127.0.0.1:8080

I just wanted to know if we can work with a local database in this way with Linux

PS: I don't want to install Xampp

网友答案:

Sure, you can install an local MySQL Server. If you are running Ubuntu/Debian here we go:

Install MySQL and PHP Modules

sudo apt-get install mysql-server php5-mysql

Finish Setup with:

sudo /usr/bin/mysql_secure_installation

Thats it!

分享给朋友:
您可能感兴趣的文章:
随机阅读: