RE: Help connection to mysql database
Henry Hartley <[email protected]> Wed, 26 Jun 2013 13:25:46 +0000
| Newsgroups | gmane.comp.lang.perl.active-perl |
|---|---|
| Message-ID | <[email protected]> |
On: Tuesday, June 25, 2013 At: 6:04 PM, zilore mumba Wrote: >> $db =3D"IP address";=A0# should the IP address be here or I just >> put MySQL? ######################## This should be the actual name of the database. Naturally I don't know what= your database is named, so I cannot tell you what it should be. But it's u= nlikely that your database is named to look like an IP address. >> ## user hostname : This should be "localhost" but it can be diffrent too >> $host=3D"localhost";=A0 # is this ok or should I put the IP address >> here? ######################## = If mysql is running on the same machine as your perl script, then this may = be left as localhost. If, however, it is running somewhere else, then a mac= hine name or IP address will need to be supplied. Perl needs to know where = to send the request. If it isn't on the local machine (localhost) then it w= ill need to send the request to another machine, so you'll telling it where. -- = Henry _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs