Question about Apple Mac OS X 10.4

1 Answer

OS X 10.4 PHP MySQL problem

I don’t know what's going on, PHP and MySQL aren't connecting with each other, what could be the cause of this?

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    President:

    An expert whose answer got voted for 500 times.

  • Master
  • 2,336 Answers

To change the location where MySQL creates its socket file, do this:
1. Open your preferred text editor and create a plain text file.
2. Type this text (on two lines as shown):
[mysqld]
socket=/tmp/mysql.sock

3. Save the file as: /etc/my.cnf


To change the location where PHP looks for the socket file, follow these steps:
1. In Terminal: sudo cp /etc/php.ini.default /etc/php.ini
2. Open /etc/php.ini in your preferred text editor.
3. Find the [MySQL] section, and change the mysql.default_socket directive:
4. ; Default socket name for local MySQL connects. If empty, uses
5. the built-in
6. ; MySQL defaults.
7. mysql.default_socket = /var/mysql/mysql.sock
8. Change the permissions on /var/mysql so that www can read the socket, by executing this in Terminal:
sudo chmod 775 /var/mysql

Posted on Aug 26, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

What is the best database to create a Web application ?


The best database platfrom is PHP-MySql. It's used for website building and management wirh database Adding.There are many version of MySql like as PHP 5.5.0, PHP 7.0.0. in used for website development. MySql is very easy and comfort database system than all others. Personally i used PHP-MySql to built website. You used it and buy website and design by web designer singapore. Web design singapore is very nice for website designe and development. Singapore Web Design Development Company Singapore

Feb 22, 2016 | Computers & Internet

1 Answer

Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)


Open up the PHP Config File Config.php (File name can vary) where the MySQL DB connection details are entered.
Change the machine source name, user name and password as per the current system config.
If still not fixing, go to the PHP line causing the issue and echo the connection details, and see if correct values are there.

Mar 04, 2013 | Computers & Internet

1 Answer

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in...


I know this is a Homework problem. You aren't going to learn anything if we do it for you. I will give you this hint: There is a C++ library that has to be loaded in the header section in order to access the MySql Functions. It can be done using the core C++ header file for Databases but it is much harder to do. Once you add the proper header it should take you about an Hour to complete the program. Good Luck

Jul 28, 2011 | Computers & Internet

1 Answer

I can't log in, it is saying bad account or password, and then if I hit create new acct it says Warning: mysql_connect(): Too many connections in...


:D

Having a bad day?
Ok, go to IE tools->internet options
Clear your Cache, cookies and History
Close IE
Restart IE

All should be well

If not - the server has reached capacity and no more users can log on at this time and you need to wait.

If this helped please remember to vote

Oct 04, 2009 | Computers & Internet

1 Answer

Installing MySQL on Mac OS X


You can install MySQL on Mac OS X 10.3.x (“Panther”) or newer using a Mac OS X binary package in PKG format instead of the binary tarball distribution. Please note that older versions of Mac OS X (for example, 10.1.x or 10.2.x) are not supported by this package.
The package is located inside a disk image (.dmg) file that you first need to mount by double-clicking its icon in the Finder. It should then mount the image and display its contents.
To obtain MySQL, see Section 2.5, “How to Get MySQL”.

Hope this helps, -- Joe (Access 2003 Examples)

Sep 01, 2008 | Sun MySQL

1 Answer

Php mysql problem


The Error In The Mysql
Now you need to searsh him in :
ftp***************/ /var/www/update.php on line****
exemple :
ftp.fixya.com/dir/car/www/update.php on line 8
This Is an example

Aug 06, 2008 | The PHP Group PHP

2 Answers

Mysql Report Error


An example of getting feedback from MySQL about a PHP problem -

mysql_connect("my.site.com", "username", "password")
This can also be done with this code -
die(mysql_error())

Each of the above lines will return the errors, if you have problems connecting to your MySQL database.
There are many more ways, this is just a taste.

Jul 29, 2008 | Sun MySQL

3 Answers

Connecting html form to Ms-access data base


If, as I suspect, this is for a web form, then it effectively can't be done on a "proper" web server. This is because you cannot install MS Office on an MS server OS (e.g. Server 2003). You need to use MS SQL Server or MySQL instead. If this is for very limited use (i.e. only a few clients at a time), you can use XP running IIS but this is really not a good idea. The sedurity implications don't bear thinking about :) Linking a web page to Access can probably be done using ASP (never even thought of trying it - anyone else here know for sure?) If you are using a Linux web server then it's totally out of the question. Use Webmin or PHPMySQL to set up a MySQL database & PHP to code the linkage between the page and the DB. There are plenty of tools out there that will automate this for you, some of them Open Source and therefore free to acquire.

Sep 26, 2007 | Microsoft Office Standard for PC

Not finding what you are looking for?
Apple Mac OS X 10.4 Logo

Related Topics:

161 people viewed this question

Ask a Question

Usually answered in minutes!

Top Apple Computers & Internet Experts

paulcarew

Level 3 Expert

2404 Answers

Martin Buck
Martin Buck

Level 2 Expert

82 Answers

MarkMAlford
MarkMAlford

Level 1 Expert

6 Answers

Are you an Apple Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...