Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
easyphp and mysql configuration help
Old 02-23-2007, 10:22 AM easyphp and mysql configuration help
pastorharry's Avatar
Junior Talker

Posts: 3
Name: harry silva
Trades: 0
=i hope this is in the right forum, i saw nothing for mysql or easyPHP
so hopefully this belongs in the general forum =

hi,
a little back ground:
I have been developing and coding pages sence before there was a www. I
recall such debates like 300 baud was fine and did we need to pay $12.50
a hour to access it at 1200 baud - which was too fast to read anyway.
for the last several years i have been using visual studio and the .net
frame work to develope my web sites. It's fast easy and while not cheap
it is also very simple to code exciting sites.


Well a month or so ago i was given the task to develope a new website.
We contracted with a host that promised us .net would be available on
the hosting site. Well i should have known better asp.net 2.0 on a
unix/linux system was probably unlikely.. frankly the hosting company
lied. (but that is for another forum). Based on the promises we purcased
a full year of services including our .com registration.

to make a long story short, i had to relearn how to code using notepad and learn
how to use php and something called mysql. I am use to the context
sensative nature of visual studio so learning to code again by hand
was a pain, but i am actually enjoying it. There is some what more
a sense of accomplishment doing it your self instead of just painting
a webpage with (essencially) predefined stuff.


I have however come upon a snag, and probably the baine of gpl software
no one to turn to for help. Using a package called easyPhP (version 1.8)
to test and to ultimately deploy (or we hop to) the inhouse version
of the website i have encountered a problem. I do not seem to be able
to get mysql to intilize. given this mysql configuration file...


Code:
#------------------------ IMPORTANT ! ----------------------
# This file is GENERATED by EasyPHP when needed so edit the
# file F:\EASYPH~1\conf_files\my.ini if you want to do
# modifications in this file
#-----------------------------------------------------------
 
; IMPORTANT
; F:/EASYPH~1 is used to specify EasyPHP installation path
[mysqld]
;datadir=F:/EASYPH~1/mysql/data
;basedir=F:/EASYPH~1/mysql
;bind-address=127.0.0.1
; Uncomment for use on USB key
; skip-innodb
datadir=F:/silvanet/mysql/data
basedir=${path)/mysql
bind-address=127.0.0.1
;bind-address=192.168.2.105
the following code segment:
Code:
<?php
/* Program: mysql_up.php
 * Desc:    Connects to MySQL Server and 
 *          outputs settings.
 */
 echo "<html>
       <head><title>Test MySQL</title></head>
       <body>";
 $host="localhost";
 $user="";
 $password="";
 $cxn = mysqli_connect($host,$user,$password);
 $sql="SHOW STATUS";
 $result = mysqli_query($cxn,$sql);
 if($result == false)
 {
    echo "<h4>Error: ".mysqli_error($cxn)."</h4>";
 }
 else
 {
   /* Table that displays the results */
   echo "<table border='1'>
         <tr><th>Variable_name</th>
             <th>Value</th></tr>";
   for($i = 0; $i < mysqli_num_rows($result); $i++) 
   {
     echo "<tr>";
     $row_array = mysqli_fetch_row($result);
      for($j = 0;$j < mysqli_num_fields($result);$j++) 
      {
         echo "<td>".$row_array[$j]."</td>\n";
      }
   }
   echo "</table>";
 }
?>
</body></html>
returns
Code:
Fatal error: Call to undefined function: mysqli_connect() in f:\silvanet\public_html\mysql_up.php on line 13
comments,\
i hope the ';' were used to start comments
I commented out some of the orgional lines
and substuted what i hope are appropriate adjustments i want to
put the .sql data bases in f:\silvanet\mysql\data
and the easyPHP package was installed in f:\easyPHP etc...

questions? can mysql be 'bound' to more then one address? the second one
is the local intranet's machine address. i'd like to beable to access the database accross the intranet (so ultimately others can use the site) as well as on the machine itself (for testing).
help....
pastorharry is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-23-2007, 08:39 PM Re: easyphp and mysql configuration help
Experienced Talker

Posts: 35
Trades: 0
This is in the wrong section, it belongs in PHP and MySQL forum...
eXistenZ is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 08:46 PM Re: easyphp and mysql configuration help
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
I am not familiar with mysql on Windows but I don't think you should have edited the mysql ini file. If you do a Google search for
Fatal error: Call to undefined function: mysqli_connect()
The results seem to indicate a configuration adjustment in php.ini.
joder is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 08:51 PM Re: easyphp and mysql configuration help
Experienced Talker

Posts: 35
Trades: 0
No, that means that it can't connect to MySQL server.... Trying renaming the $host, localhost
eXistenZ is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 08:52 PM Re: easyphp and mysql configuration help
Experienced Talker

Posts: 35
Trades: 0
Oops, I just noticed, it is already localhost. Put your username as, root, and leave your password.
eXistenZ is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 08:53 PM Re: easyphp and mysql configuration help
Experienced Talker

Posts: 35
Trades: 0
example,
$user="root";
$password="";
eXistenZ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to easyphp and mysql configuration help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47111 seconds with 12 queries