Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
Old 25th February 2012, 10:40 AM
dysphorichermit Offline
Registered User
Join Date: May 2010
Location: United States
Posts: 35
mysqli_connect with .my.cnf

Hello All.

Is there a way to use a password stored in a .my.cnf file with mysqli_connect instead of a username and password as seen the syntax example below? Thanks!

$dbc = mysqli_connect('localhost', 'user' 'password', 'databasename') or die('Error connecting to MySQL server.');
"I ask not for a lighter burden, but for broader shoulders."
Reply With Quote

mycnf, mysqliconnect

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

Current GMT-time: 21:31 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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