Configure the PHP programming environment under Fedora17

Source: Internet
Author: User
Process records for configuring the PHP programming environment under Fedora17: 1. Install Mysql and Mysql-Server # yuminstallmysqlmysql-server ======================== ========================================================== ============= Package shelf

Process records for configuring the PHP programming environment under Fedora 17:

1. Install Mysql and Mysql-Server

# yum install mysql mysql-server
========================================================== ==========================================================Package architecture version repository size========================================================== ==========================================================Installing: mysql i6865.5.23-1. Fc17 fedora4.5M mysql-Server i6865.5.23-1. Fc17 fedora8.2Install M for dependency: libaio i6860.3.109-5. Fc17 fedora22KPerl-AnyEvent noarch5.27-7. Fc17 fedora319KPerl-AnyEvent-AIO noarch1.1-8. Fc17 fedora8.4KPerl-AnyEvent-BDB noarch1.1-7. Fc17 fedora8.4KPerl-Async-MergePoint noarch0.03-7. Fc17 fedora19KPerl-BDB i6861.88-5. Fc17 fedora72KPerl-Coro i6866.07-3. Fc17 fedora246KPerl-Curses i6861.28-5. Fc17 fedora86KPerl-DBD-MySQL i6864.020-2. Fc17 fedora140KPerl-DBI i6861.617-1. Fc17 fedora781KPerl-EV i6864.03-8. Fc17 fedora251KPerl-Event i6861.20-1. Fc17 fedora280KPerl-Event-Lib i6861.03-16. Fc17 fedora50KPerl-Glib i6861.241-2. Fc17 fedora348KPerl-Guard i6861.022-1. Fc17 fedora18KPerl-Heap noarch0.80-10. Fc17 fedora46KPerl-IO-AIO i6864.15-1. Fc17 fedora112KPerl-IO-Async noarch0.29-7. Fc17 fedora160KPerl-IO-Tty i6861.10-5. Fc17 fedora39KPerl-POE noarch1.350-2. Fc17 fedora583KPerl-Socket-GetAddrInfo i6860.19-1. Fc17 fedora32KPerl-Socket6 i6860.23-8. Fc17 fedora22KPerl-TermReadKey i6862.30-14. Fc17 fedora29KPerl-Common-sense noarch3.5-1. Fc17 fedora26K transaction Summary========================================================== ==========================================================Install2Software Package (+24Dependent packages) total downloads:16M installation size:81M OK? [Y/N]:

Then download and install the SDK.

  • Open the service

First, let's look at the current port situation:

# netstat -tnlActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address           Foreign Address         State      tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:55387           0.0.0.0:*               LISTEN     tcp        0      0 127.0.0.1:7070          0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     tcp6       0      0 :::58520                :::*                    LISTEN     tcp6       0      0 ::1:7070                :::*                    LISTEN     tcp6       0      0 :::111                  :::*                    LISTEN     tcp6       0      0 :::22                   :::*                    LISTEN     tcp6       0      0 :::631                  :::*                    LISTEN     
 

Then enable the Service

# systemctl start mysqld.service

Let's see which port is added?

# netstat -tnlActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address           Foreign Address         State      tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:55387           0.0.0.0:*               LISTEN     tcp        0      0 127.0.0.1:7070          0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     tcp6       0      0 :::58520                :::*                    LISTEN     tcp6       0      0 ::1:7070                :::*                    LISTEN     tcp6       0      0 :::111                  :::*                    LISTEN     tcp6       0      0 :::22                   :::*                    LISTEN     tcp6       0      0 :::631                  :::*                    LISTEN   

Yes! This 3306 is the mysql port.

  • Set the mysql user and password
# Mysqladmin-uUser NamePasswordPassword

Here, the user name should be replaced by what you want. Do not tell me the password. ^-^

  • Check database connection
# Mysql-h localhost-u username-PEnter password: Welcome to the MySQL monitor...>

If you see this, the mysql connection is successful. What should I do if I want to exit mysql? Enter \ q after mysql>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.