• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.
  • We hope the site problems here are now solved, however, if you still have any issues, please start a ticket in Contact Us

  • The rule regarding AI content has been updated. The rule now rules as follows:

    Be sure to credit AI when copying and pasting AI sources. Link to the site of the AI search, just like linking to an article.

pgp_protector

Noted strange person
Dec 17, 2003
51,919
17,828
57
Earth For Now
Visit site
✟478,345.00
Gender
Male
Faith
Christian
Marital Status
Widowed
Politics
US-Others
You would connect to the MySQL Database by the command in a PHP file (Running on the webserver)
Code:
<? 		
@ $db=mysql_connect('localhost','username','password');
  if(!$db) 
	{ 
	exit; 
	}			//Unable to connect to database  Quit with a smile :)
  mysql_select_db('databasename',$db);
?>

A really good book to get is Visual Read Less-Learn More MySQL

now if you want to connect from your computer, I would suguest finding a program called MySQL-Front
 
Upvote 0

trunks2k

Contributor
Jan 26, 2004
11,369
3,520
43
✟285,241.00
Faith
Humanist
Marital Status
Married
Politics
US-Others
PrNcSsChRmNg91 said:
Hello. I'm currently hosted and my hostess does have mySQL. I need to access the mySQL to create a username. My hostess gave me my db name and password already. How do I access the mySQL?

Thanks!

Well there are numerous ways to access MySql. And I'm not entirely sure what you mean by creating a username. Do you mean creating a username for your website or for the MySql database itself?

The documentation for mysql can be found at: http://dev.mysql.com/doc/

If you have shell access to the server, you can shell into the server and alter the database directly. By following the directions in the documentation.

You can also access MySql via a PHP with the directions given above. to perform a query, you need to have the script connect to the database as given above. Then any query can be run with the line:

mysql_query("THE QUERY YOU WANT TO RUN", $db);

A query is any alteration or innspection of the mysql database. See the MySql documentation on what types of queries you can run (including adding users to the database itself).

Alternately, you can use a front end to the database. I personally use PHPmyAdmin found at: http://marketplace.viaverio.com/modules.php?name=News&file=article&sid=36

PHPmyAdmin doesn't allow you to add or remove users for the databse itself (at least not by default, there may be an option to set).

There's a really nice, simple tutorial on how to use PHP and MySql at:
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
 
Upvote 0