Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th September 2012, 03:12 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 144
linuxfirefox
PHP and Mysql in FC17

Hello,
In the past, with previous Fedora versions, I successfully have worked with PHP and Mysql.
After a new installation of FC17, I like to work with it again.
But after installing both, now I cannot work with it.
Please what can be the reason why I can not start it?
Many thanks in advance for helping.
Gaston Verhulst.
Code:
 [gastonv@gastonv ~]$ yum list installed | grep php
php.i686                          5.4.6-2.fc17                   @updates       
php-cli.i686                      5.4.6-2.fc17                   @updates       
php-common.i686                   5.4.6-2.fc17                   @updates       
[gastonv@gastonv ~]$ yum list installed | grep mysql
mysql.i686                        5.5.27-1.fc17                  @updates       
mysql-libs.i686                   5.5.27-1.fc17                  @updates       
[gastonv@gastonv ~]$ sudo /etc/init.d/mysqld start
[sudo] password for gastonv: 
sudo: /etc/init.d/mysqld: command not found
[gastonv@gastonv ~]$ sudo /etc/init.d/httpd restart
sudo: /etc/init.d/httpd: command not found
[gastonv@gastonv ~]$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[gastonv@gastonv ~]$ ls /etc/init.d/
deluge-daemon  functions  netconsole  network  spice-vdagentd  tcsd  wine
Reply With Quote
  #2  
Old 25th September 2012, 07:12 AM
PabloEsc's Avatar
PabloEsc Offline
Registered User
 
Join Date: Apr 2010
Location: Poznan, Poland
Age: 33
Posts: 58
windows_xp_2003firefox
Re: PHP and Mysql in FC17

1. Install mysql-server package
2. Use one of the online guides such as : http://www.howtoforge.com/installing...fedora-17-lamp
Reply With Quote
  #3  
Old 25th September 2012, 10:32 AM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 144
linuxfirefox
Re: PHP and Mysql in FC17

Hello,
Many thanks for the splendid help!
After doing the whole thing as described in the URL en after the commands as root or as user, I could see the mysql prompt:
Code:
 [root@gastonv gastonv]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 24
Server version: 5.5.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> quit
Bye
[root@gastonv gastonv]# exit
exit
[gastonv@gastonv ~]$ mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 25
Server version: 5.5.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> quit
Bye
from now I can try to use it like before.
Again still one time: many thanks!
Gaston.
Reply With Quote
Reply

Tags
fc17, mysql, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC17 Repositories eldiener Using Fedora 1 15th July 2012 10:53 PM
Starting http, mysql, samba - after install on fc17 teraquad Using Fedora 3 6th June 2012 12:30 PM
Fresh FC17 Install : gnome_control_control-center-3.4.2-1.fc17.i686 CORE DUMP reflex Installation and Live Media 1 2nd June 2012 03:05 AM
fc17 crash KidVicious Using Fedora 0 30th May 2012 02:16 PM
Don't upgrade gdm to 1:3.4.0.1-4.fc17 secipolla F17 Development Forum 15 13th April 2012 08:32 PM


Current GMT-time: 10:40 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat