Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Commit aa01ee6

Browse files
committed
add instructions for centos
1 parent 19a4846 commit aa01ee6

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

examples/ch07/README.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ To run the serverside php + mysql example code in this chapter you need php5 and
44
Installing the software
55
-----------------------
66

7-
On ubuntu linux you can install the required files like this as root:
7+
ubuntu linux:
8+
sudo apt-get install php5-mysqlnd php5-json
89

9-
apt-get install php5-mysqlnd php5-json
10+
centos linux:
11+
sudo yum install httpd mysql-server php
1012

11-
On Mac osx you can use homebrew (further instructions at http://brew.sh )
13+
Mac osx:
14+
use homebrew (further instructions at http://brew.sh )
1215

13-
On windows you can use the installers available from php.net and mysql.com
16+
Windows:
17+
Use the installers available from php.net and mysql.com
1418

1519

1620
Mysql database setup
@@ -20,6 +24,17 @@ The example file crud.php assumes that you have a database called "extjsinaction
2024

2125
You can find further instructions on user account management in section 6.3 in the mysql manual (available here: http://dev.mysql.com/doc/refman/5.6/en/user-account-management.html )
2226

27+
Here is an example to load data.sql and grant access to the user
28+
"extjsinaction" from the mysql admin client:
29+
30+
\. data.sql
31+
grant all on extjsinaction.* to extjsinaction@localhost identified by 'extjsinaction'
32+
33+
you could then tweak the top line in crud.php to :
34+
mysql_connect("localhost", "extjsinaction", "extjsinaction") or die ("could not connect:" . mysql_error());
35+
36+
37+
2338

2439

2540
Tweaking the datastores to run locally

0 commit comments

Comments
 (0)