Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 25th February 2012, 09:40 AM
dysphorichermit Offline
Registered User
 
Join Date: May 2010
Location: United States
Posts: 35
linuxfedorafirefox
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!

Code:
$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
 

Tags
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: 12:21 (Thursday, 24-07-2014)

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