Look back a bit, that was already mentioned and implemented, which is
why the error no longer complains about the socket not being found in
/tmp (which is the default provided in the standard php.ini). ;-)
Though I did notice that this thread has been split (Gmail isn't
showing the conversation in two halves), maybe you didn't see the
previous message?
--Kyle Sluder
On Nov 26, 2007 1:04 AM, webmaster <email@hidden> wrote:
>
> On Nov 25, 2007, at 18:11:52, Kyle Sluder wrote:
>
> > Except that if you read the documentation, every single argument to
> > mysql_connect() is optional. If the connection were being
> > successfully established, she would have authentication failures, not
> > socket failures.
>
> That is only partially true and for someone who knows this much you
> would have been better to ask the poster if the defaults have been
> defined in the php.ini file instead of assuming the poster knows this
> and this has been done.
>
> It's optional because it accepts the defaults that are defined in the
> php.ini file and that only applies if they have been defined and
> since the poster can't get it working I'd say that it's very probable
> they have not been defined, what I offered works regardless of the
> php.ini defines which is far easier than trying to educate the poster
> on the intricacies of the php.ini file which would take far more time
> than I would care to devote to their problem.
>
> I offered a working solution, unfortunately you haven't done or
> offered anything helpful.
>
>
> >
> > --Kyle Sluder
> >
> > On Nov 25, 2007 6:17 PM, webmaster
> > <email@hidden> wrote:
> >>
> >> On Nov 25, 2007, at 12:00:26, Livio Isaia wrote:
> >>
> >>> In fact I have a php file which calls "$connection = mysql_connect
> >>> ()". That's all. It comes from a sample found in the "mySQL
> >>> functions" section of a php tutorial. Isn't it right (or complete)?
> >>> I'm really new to mysql, sorry.
> >>
> >> What ???
> >>
> >> I take it you didn't read the info on the function, copy and paste
> >> this in your php file. (don't forget to edit the username and
> >> password)
> >> _________________________________________
> >>
> >> // Define the information to access the mysql server
> >> $mysql_access = array(
> >> 'host' => "localhost", //
> >> can be in form of host:port.
> >> 'socket' => ":/var/mysql/mysql.sock", // path to mysql
> >> socket
> >> 'username' => "mysql_username", //
> >> username for mysql access.
> >> 'password' => "mysql_password", //
> >> password for mysql access.
> >> 'connection' => "socket", //
> >> connection type to use. (use socket
> >> for local)
> >> );
> >> // DO NOT CHANGE THIS!!!
> >>
> >>
> >> // Establish a connection to the server
> >> $connection = mysql_connect($mysql_access[$mysql_access
> >> ['connection']],$mysql_access['username'] ,$mysql_access
> >> ['password']);
> >> _________________________________________
> >>
> >> Now that you have a connection what do you want to do with it?
> >>
> >>>
> >>> Thank you.
> >>>
> >>> Regards,
> >>> livio.
> >>> ____
> >>
> >> -- Dale
> >>
> >>
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Macos-x-server mailing list (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >> http://lists.apple.com/mailman/options/macos-x-server/kyle.sluder%
> >> email@hidden
> >>
> >> This email sent to email@hidden
> >>
> >
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden
This email sent to email@hidden