Hi,
I'm new to the world of mysql and i'm having alot of trouble with it.
All i want to do is create a page with a response form, e.g. name etc
and some radio buttons (part of a uni project, but i'm a chemist!) and
a submit button to save the data in a database.
I installed iss microsoft web server and php and the mysql database.
Php works fine, i could write to a text file, and using phpinfo(); it
says everythings ok and a mysql section is there, so i'm guessing
mysql is installed ok.
The php script to insert info etc in to databases seems easy enough,
but i have no idea how to create a database!
I searched everywhere, but could find nothing, most mysql tutorials
just brush past it and go onto the editing of a databse, but i have no
database!
Can anybody help me to how to create a simple mysql database, i.e. 1
table with a few forms in.
Also, this database is being used as a survey, so its sorta essential
that i can extract the data afterwards, again, could find no info!
Any help would be very much appreciated!
Thanks, Jon 4 4175
> I searched everywhere, but could find nothing, most mysql tutorials just brush past it and go onto the editing of a databse, but i have no database!
Can anybody help me to how to create a simple mysql database, i.e. 1 table with a few forms in.
Maybe you missed the MySQL Documentation: http://www.mysql.com/documentation/m...l#Database_use
> I searched everywhere, but could find nothing, most mysql tutorials just brush past it and go onto the editing of a databse, but i have no database!
Can anybody help me to how to create a simple mysql database, i.e. 1 table with a few forms in.
Maybe you missed the MySQL Documentation: http://www.mysql.com/documentation/m...l#Database_use
Hi, thanks for your help. I found that but couldnt make much sense of
it, mainly since the:
mysql -h host -u user -p
Enter password: ********
bit in the shell didnt work, it says:
Error 2005: Unknown Mysql server Host host (11001).
the documentation says:
To connect to the server, you'll usually need to provide a MySQL user
name when you invoke mysql and, most likely, a password. If the server
runs on a machine other than the one where you log in, you'll also
need to specify a hostname. Contact your administrator to find out
what connection parameters you should use to connect (that is, what
host, user name, and password to use). Once you know the proper
parameters, you should be able to connect like this:
shell> mysql -h host -u user -p
Enter password: ********
not to sure whats the program with the host/user or what to put. my
p.c is part of a 5 comuter student house/home network. I.e. 1 server
running internet connection sharing to the 4 rooms.
I thinks thats my problem now.
Again, any more help would be much appreciated, Jon
Hi, thanks for your help. I found that but couldnt make much sense of
it, mainly since the:
mysql -h host -u user -p
Enter password: ********
bit in the shell didnt work, it says:
Error 2005: Unknown Mysql server Host host (11001).
the documentation says:
To connect to the server, you'll usually need to provide a MySQL user
name when you invoke mysql and, most likely, a password. If the server
runs on a machine other than the one where you log in, you'll also
need to specify a hostname. Contact your administrator to find out
what connection parameters you should use to connect (that is, what
host, user name, and password to use). Once you know the proper
parameters, you should be able to connect like this:
shell> mysql -h host -u user -p
Enter password: ********
not to sure whats the program with the host/user or what to put. my
p.c is part of a 5 comuter student house/home network. I.e. 1 server
running internet connection sharing to the 4 rooms.
I thinks thats my problem now.
Again, any more help would be much appreciated, Jon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lkrubner |
last post by:
I have a webserver through Rackspace. I create a domain. I create an
FTP user. I upload some files. I create a database called
testOfSetupScript and then I create a database user named setup.
I write some PHP code which should, I think, be able to to auto create
the tables.
The SQL looks like this:
|
by: w_curtis |
last post by:
I'm an Access user, and I'm trying to learn MySQL and then PHP so I can make
some web databases. But it just isn't clicking.
I've followed some tutorials, and picked up a book, but just getting to
square one has been a pain. I can follow the tutorials and get to the point
where I can make tables and stuff, but I don't know how I got there, or what
to do if something changes that makes it different than the tutorial.
MySQL doesn't seem...
|
by: Mike Chirico |
last post by:
Interesting Things to Know about MySQL
Mike Chirico (mchirico@users.sourceforge.net)
Copyright (GPU Free Documentation License) 2004
Last Updated: Mon Jun 7 10:37:28 EDT 2004
The latest version of this document can be found at:
http://prdownloads.sourceforge.net/souptonuts/README_mysql.txt?download
|
by: MLH |
last post by:
I am having failures processing the following command and I wonder
if you can tell me what I must do in order to have success. When I try
to run source mysql_dump.sql.txt ==> it is a problem for me.
1) I put the file in /home/mlh/public_html/credifree/sql_script/.
2) I made that directory my current directory
3) I typed mysql and pressed ENTER
4) I then typed source mysql_dump.sql.txt and pressed ENTER
A bunch of error...
|
by: Cheryl Langdon |
last post by:
Hello everyone,
This is my first attempt at getting help in this manner. Please
forgive me if this is an inappropriate request.
I suddenly find myself in urgent need of instruction on how to
communicate with a MySQL database table on a web server, from inside
of my company's Access-VBA application. I know VBA pretty well but
have never before needed to do this HTTP/XML/MySQL type functions.
| |
by: jrs_14618 |
last post by:
Hello All,
This post is essentially a reply a previous post/thread
here on this mailing.database.myodbc group titled:
MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode
I was wondering if anybody has experienced the same issues
|
by: mistral |
last post by:
Need php script to create mySQL database programmatically; since
hosting configuration may not allow create database from script, script
also need eliminate/rewrite all restrictions in appropriate places in
that hosting.
|
by: Ben |
last post by:
I don't know whether anyone can help, but I have an odd problem. I have
a PSP (Spyce) script that makes many calls to populate a database. They
all work without any problem except for one statement.
I first connect to the database...
self.con = MySQLdb.connect(user=username, passwd =password)
self.cursor = self.con.cursor()
self.cursor.execute("SET max_error_count=0")
|
by: Marijn |
last post by:
Hello everybody,
I am new to PHP and working on extending my knowledge of OOP. The
posts in this group concerned with whether or not to use an OO
approach when programming in PHP is not what I want to discuss in this
post. Rather I would like to discuss the best way to program the
following problem:
I have a MySQL Database which for example exists of phonenumbers. The
table might look something like this.
|
by: Atli |
last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t.
In situations where your PHP application needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files.
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |