MySQL database.

  • Thread starter John Fitzsimons
  • Start date
J

John Fitzsimons

Oh, and you'll probably want this too...
http://www-courses.cs.uiuc.edu/~cs105/mysql.htm

Thanks Ceg,

That certainly makes things easier ! :)

Thanks too to Rohit. I hadn't realised that there was a freeware and
non freeware version.

Last time I (unsuccessfully) tried to solve my problem I installed a
few programs that ended up adding over 800 directories (not registry
entries !) to my hard drive. All I got out of the exercise was total
confusion. I just wish UNIX people could understand the notion of a
"step by step" explanation. :-(

Thanks to this latest help I am almost ready for another serious dose
of masochistic SQL toying later this week. If I succeed I am beginning
to think it might be a miracle.

Regards, John.
 
J

John Hood

I'm trying to get a handle on MySQL and PHP. I started monkeying with
MySQLFront last night to see what I could pick up. I quickly got
stymied by the fact that I didn't understand how to translate MSAccess
data types to MySQL. For that matter, I don't know much about SQL
either. Want to learn though. I guess that MSAccess does more
handholding than I thought :) Does anyone have suggestions for help for
goobs who are taking baby steps from MSAccess to Mysql or PHP?

John Hood
Web Site www.jhoodsoft.org
"The best home and business free software, no ads, no time limits, no
fluff."
"No kidding."
 
S

Susan Bugher

John said:
I'm trying to get a handle on MySQL and PHP. I started monkeying with
MySQLFront last night to see what I could pick up. I quickly got
stymied by the fact that I didn't understand how to translate MSAccess
data types to MySQL. For that matter, I don't know much about SQL
either. Want to learn though. I guess that MSAccess does more
handholding than I thought :) Does anyone have suggestions for help for
goobs who are taking baby steps from MSAccess to Mysql or PHP?

I *aspire* to baby steps in PHP - still crawling ATM. I've found these
sites helpful.

PHP Tutorial

http://www.w3schools.com/php/php_syntax.asp

A complete list of PHP functions

http://www.php.net/quickref.php

Susan
 
J

John Fitzsimons

I'm trying to get a handle on MySQL and PHP. I started monkeying with
MySQLFront last night to see what I could pick up. I quickly got
stymied by the fact that I didn't understand how to translate MSAccess
data types to MySQL. For that matter, I don't know much about SQL
either. Want to learn though. I guess that MSAccess does more
handholding than I thought :) Does anyone have suggestions for help for
goobs who are taking baby steps from MSAccess to Mysql or PHP?

< snip >

I am in much the same position. I want to convert a C.S.V. file to a
Mysql file. I am having no luck with MySQLFront.

It appears that 2.5 does not work. 3.1 supposedly does but I cannot
work out how to do it. The "help" file is just about useless IMO. Not
much help at all.

If I can work things out I will let you know. If you/someone else can
work things out perhaps you can let me know please ?

Regards, John.
 
R

REM

I'm trying to get a handle on MySQL and PHP. I started monkeying with
MySQLFront last night to see what I could pick up. I quickly got
stymied by the fact that I didn't understand how to translate MSAccess
data types to MySQL. For that matter, I don't know much about SQL
either. Want to learn though. I guess that MSAccess does more
handholding than I thought :) Does anyone have suggestions for help for
goobs who are taking baby steps from MSAccess to Mysql or PHP?

Are you also trying to move DB's created in MS Access to MySQL?

http://dev.mysql.com/doc/mysql/en/Features.html

"Connectivity

Clients can connect to the MySQL server using TCP/IP sockets on any
platform. On Windows systems in the NT family (NT, 2000, or XP),
clients can connect using named pipes. On Unix systems, clients can
connect using Unix domain socket files.

The Connector/ODBC (MyODBC) interface provides MySQL support for
client programs that use ODBC (Open Database Connectivity)
connections. For example, you can use MS Access to connect to your
MySQL server. Clients can be run on Windows or Unix. MyODBC source is
available. All ODBC 2.5 functions are supported, as are many others.
See section 22.1 MySQL ODBC Support."

It looks like MS Access can connect to the MYSQL database. If so, this
would probably be the easiest route to transfer existing structures.
There are differences in data types, but from what I've seen MySQL
allows for larger values than ACCESS, so there should be no problems
in moving the data.

Here are the data types for MySQL:

http://dev.mysql.com/doc/mysql/en/Numeric_types.html

On the left panel you can choose the other data types.

-----------------------------------------------------------------------

I'm working in SQLPLUS (Oracle) and there are many similarities. I'm
not sure exactly what the differences are.

Once logged onto the server we must type > SQLPLUS
to start the application. After logging onto sqlplus any query or
series of commands can be run.

This is a script to create and slightly populate two tables we are
working on as a project. The file name is "employee.sql" and is
executed by typing "@employee" in sqlplus:

-----------------------------------------------------------------------
CREATE TABLE STORE
( STOREID CHAR(15) NOT NULL,
MANAGERID CHAR(9) NOT NULL,
STOREHOURS CHAR(40) NOT NULL,
ADDRESS VARCHAR(40),
SALESTAX FLOAT,
PHONENUM CHAR(10),
PRIMARY KEY (STOREID));
INSERT INTO STORE
VALUES ('123456789','726381982','M - F 9:00 to 5:00 pm',
'142 Hudson St, Houston, TX, 75934', .0825, '4561234567');


CREATE TABLE EMPLOYEE
( EMPLOYEEID CHAR(9) NOT NULL,
LNAME VARCHAR(15) NOT NULL,
FNAME VARCHAR(15) NOT NULL,
MNAME VARCHAR(15),
VACATIONDUE INTEGER,
DEPARTMENT CHAR(20),
HIREDDATE DATE NOT NULL,
POSITION CHAR(15),
MANAGERID CHAR(9) NOT NULL,
STOREID CHAR(15) NOT NULL,
DATEOFBIRTH DATE,
EMPLOYEETYPE CHAR(15),
WAGETYPE CHAR(10) NOT NULL,
SICKLEAVEDUE INTEGER,
ADDRESS VARCHAR(40),
PRIMARYPHONE CHAR(10),
ESSN CHAR(9) NOT NULL,
SEX CHAR(1),
PRIMARY KEY (EMPLOYEEID),
FOREIGN KEY (STOREID) REFERENCES STORE(STOREID),
FOREIGN KEY (MANAGERID) REFERENCES EMPLOYEE(EMPLOYEEID));

INSERT INTO EMPLOYEE
VALUES
('726381982','Magee','Fred','Hansel',2,'CheckOut','12-Jan-02',
'Manager','726381982','123456789','12-Nov-65','Manager','Salary',10,
'342 Warly Ln, Houston, TX, 75934','4562129999','122341345','M');
-----------------------------------------------------------------------

This creates two tables.

The query (typed or in a script):

SQL> select employeeid, fname, lname
from employee;

would return:

EMPLOYEEID FNAME LNAME
-------------- -------- --------
726381982 Fred Magee

since this is the only employee in the employee table.
 
J

John Fitzsimons

Have you tried the 'import' on phpMyAdmin?

No, I am trying to avoid having to learn pages of "commands" and
configuration options. I am sure that lines such as ;

$cfg['PmaAbsoluteUri'] string
$cfg['PmaAbsoluteUri_DisableWarning'] boolean
$cfg['Servers'] array
$cfg['Servers'][$i]['port'] string

etc. etc. are very basic stuff for programmers but I am not a
programmer.

Thanks anyway.

Regards, John.
 
P

Porch Dog

John Fitzsimons said:
Have you tried the 'import' on phpMyAdmin?

No, I am trying to avoid having to learn pages of "commands" and
configuration options. I am sure that lines such as ;

$cfg['PmaAbsoluteUri'] string
$cfg['PmaAbsoluteUri_DisableWarning'] boolean
$cfg['Servers'] array
$cfg['Servers'][$i]['port'] string

etc. etc. are very basic stuff for programmers but I am not a
programmer.

phpMyAdmin should run straight out of the box unless you use an alternative
port. Then you'd only have to change one line to add the path to your copy
of phpMyAdmin.
 
J

John Fitzsimons

phpMyAdmin should run straight out of the box unless you use an alternative
port. Then you'd only have to change one line to add the path to your copy
of phpMyAdmin.

I don't care what "should" happen. I am more interested in what does
happen.

After installing PHP 5.0.2 I had over 180 files making a total
of >17MB.

I then installed the over 500 files of phpMyAdmin. Almost another 7MB.

I then tried to find how to start phpMyAdmin. Admittedly I didn't read
every single one of the 2,900 lines of the "documentation" file but
apparently I was to look for a
<www.your-host.com>/<your-install-dir>/index.php file.

Couldn't find that so tried ;

C:/phpMyAdmin-2.6.0-pl2/phpMyAdmin-2.6.0-pl2/index.php in my browser.
All I got was a few paragraphs of what looks like configuration info.
It certainly didn't open any GUI interface.

No, I am NOT going to re-read every line of a TWO THOUSAND NINE
HUNDRED LINE "help" file to find out what I did wrong.

IMO the above is a typical example of what can happen when a windows
user who isn't a UNIX guru, and/or programmer, is silly enough to try
and use non windows programs. Even those that are supposedly meant
to run on windows.

Thanks for your help but the more I look at MySQL the more I see why
windows is so popular. UNIX people appear to have no concept at all of
the notion of a "step by step" approach to helping anyone.

Regards, John.
 
P

Porch Dog

John Fitzsimons said:
I then tried to find how to start phpMyAdmin. Admittedly I didn't read
every single one of the 2,900 lines of the "documentation" file but
apparently I was to look for a
<www.your-host.com>/<your-install-dir>/index.php file.

Couldn't find that so tried ;

C:/phpMyAdmin-2.6.0-pl2/phpMyAdmin-2.6.0-pl2/index.php in my browser.

Actually, it's quite simple. You're just looking for it to be difficult.
When I first got my hands on a bi-trans 6 I thought it was difficult and
couldn't see the simplicity. If you put phpMyAdmin in the "docs" folder
under your web server you would access it something like
http://127.0.0.1/phpMyAdmin . If you were on an alternative port...let's
say port 81 for example... http://127.0.0.1:81/phpMyAdmin .
 
P

Porch Dog

Porch Dog said:
Actually, it's quite simple. You're just looking for it to be difficult.
When I first got my hands on a bi-trans 6 I thought it was difficult and
couldn't see the simplicity. If you put phpMyAdmin in the "docs" folder
under your web server you would access it something like
http://127.0.0.1/phpMyAdmin . If you were on an alternative port...let's
say port 81 for example... http://127.0.0.1:81/phpMyAdmin .

Oh, add your folder if you normally have to in order to reach your standard
web files... http://127.0.0.1/docs/phpMyAdmin .
 
J

John Fitzsimons

Actually, it's quite simple.

Actually it's quite hard.
You're just looking for it to be difficult.

No, I am just looking for it to be easy. Without any success so far.
When I first got my hands on a bi-trans 6 I thought it was difficult and
couldn't see the simplicity. If you put phpMyAdmin in the "docs" folder
under your web server you would access it something like
http://127.0.0.1/phpMyAdmin .

Which gave me a completely white screen. Nothing on it whatever.
If you were on an alternative port...let's
say port 81 for example... http://127.0.0.1:81/phpMyAdmin .

According to winmysqladmin I am on the recommended port. 3306.

I also tried ;

file:///C:/mysql/Docs/phpMyAdmin-2.6.0-pl2/phpinfo.php

Just got a DOS box flash then.....nothing.

I also tried ;

file:///C:/mysql/Docs/phpMyAdmin-2.6.0-pl2/css/phpmyadmin.css.php

Just got a paragraph of some sort of config about a table calendar.

Not only do all the above fail to work I am not 100% sure which file
is supposed to be associated with .sql scripts etc. I assume it is
meant to be C:\mysql\bin\mysqld-opt.exe ?

Also, which file(s) apart from C:\mysql\bin\mysqld-opt.exe needs to
run to have the MySQL server running on a win '98 box ?

Lastly, is phpMyAdmin meant to run beside winMySQLadmin ? I
assume so or the MySQL server wouldn't be running in the
background.

Plenty of questions. No workable answers so far.

Things get worse. I used a program that is supposed to convert an
Excel file to a MySQL file. Need I say the obvious ? It didn't work.

Here is the error ;

http://members.optushome.com.au/jfnews/errormsql5.jpg

The obvious question is "How can one set privileges on a file that
hasn't even been created yet ?"

For that matter "How can one set privileges on any MySQL file
at all ?" On a win'98 box ?

Pretty well all "help" assumes one is using root access on a UNIX
box.

Regards, John.
 
P

Porch Dog

We're packing everything up and getting ready to move across state Saturday
morning. After we get moved and get the computers set back up I'll be more
than happy to help you get your mysql and phpMyAdmin set up if you like.
You'll be able to reach me at ceg at anandaquest dot com .
 
R

Ray

I then tried to find how to start phpMyAdmin. Admittedly I didn't read
-- snip --
For that matter "How can one set privileges on any MySQL file
at all ?" On a win'98 box ?

Pretty well all "help" assumes one is using root access on a UNIX
box.

I haven't followed this thread very much but if you are after a running
PHP/MySQL system and using phpMyAdmin, why not take the easy route? I
wanted a setup on my win98se box. It didn't have to have all the
capabilities of the full PHP/MySQL system although I use it for development
work before uploading to a Unix server. I got EasyPHP from:
http://www.easyphp.org/telechargements.php3. It's easy to download and easy
to setup. The setup includes Apache server, PHP, MySQL and phpMyAdmin in
one package, all integrated. I added phpBB2 to it for my forum work. It
works very well.

HTH,
Ray
 
J

John Fitzsimons

I haven't followed this thread very much but if you are after a running
PHP/MySQL system and using phpMyAdmin,

I am not running phpMyAdmin. That is my problem. I cannot get it to
work.
why not take the easy route?

That's the route I have been looking for. :)
I
wanted a setup on my win98se box. It didn't have to have all the
capabilities of the full PHP/MySQL system although I use it for development
work before uploading to a Unix server. I got EasyPHP from:
http://www.easyphp.org/telechargements.php3. It's easy to download and easy
to setup. The setup includes Apache server, PHP, MySQL and phpMyAdmin in
one package, all integrated. I added phpBB2 to it for my forum work. It
works very well.

Thanks Ray, I will take a look at that. I did try an Apache etc.
download on my win'98 box previously but all it did was add hundreds
of directories.....and didn't work !

Regards, John.
 
J

John Fitzsimons

We're packing everything up and getting ready to move across state Saturday
morning. After we get moved and get the computers set back up I'll be more
than happy to help you get your mysql and phpMyAdmin set up if you like.
You'll be able to reach me at ceg at anandaquest dot com .

Thanks Ceg, rather than email you before you are organised would
you mind emailing me when you are settled please ? If that isn't
convenient then give me a date and I will email you then if I don't
have things resolved. Which at the moment looks highly likely.

Regards, John.

P.S. My return address works if you remove the obvious. :)
 
R

Richard Steven Hack

Thanks for your help but the more I look at MySQL the more I see why
windows is so popular. UNIX people appear to have no concept at all of
the notion of a "step by step" approach to helping anyone.

Actually, the issue is not so much UNIX vrs Windows as it is "large
database vrs small database".

Installing Oracle and getting it to work is not easy either. MySQL is
not an end-user consumer database like Access - despite how it may be
marketed. It's meant to be run by someone with some DBA knowledge. I
had to install it a year or so ago for one of my classes in UNIX
Network Administration - with the complication that it had to be
installed on a machine which already had at least two running
instances of it! That was not trivial!
 
R

Ray

< snip >

Yes, but the download is a French file. I don't read French. I
couldn't find an English download anywhere either. :-(

You didn't look far enough. There is an English translation file - the 3rd
file down on the page I referenced for the current version. Some
translations are not complete but you should have no problem - I didn't and
I don't speak French either. Quoting from the English_readme text file:
"There three new images and the easyphp.INI file has been set to English for
MySQL and EasyPHP. Just unzip the files into the appropriate folders and
overwrite the original ones."

Since the Apache/PHP/MySQL set is a simplified version, the download is even
small. Setup time is a couple of minutes or less. EasyPHP provides an icon
to start the server (I put it on my desktop) and an icon in the task bar to
reach your files after the server is running - Web local and Administration
(PHPMyAdmin). As with other server/PHP systems, you must install programs
you want to run in a specific folder (www in the case of EasyPHP).
Additionally, you should get a good PHP editor. Everything is in text files
but using an editor made for programming is a big help. One such editor is
conText (http://www.fixedsys.com/context) and it works well - there are many
more.

On the referenced URL, click on "accueil" (Home) where you will find the
instruction guide. Also click the "forum" (French for forum but in French)
<g> and "faq"
tabs for more info.

HTH,
Ray
 
J

John Fitzsimons

You didn't look far enough.

It looks like there isn't an English version. So I did look far
enough.
There is an English translation file - the 3rd
file down on the page I referenced for the current version.

Would have been nice if you had of said it was a French download. It
would also have been nice if the need for a translation to English was
mentioned on that page. I would expect that most people reading a page
written in English would expect at least one download on that page to
be in English too.

What exactly is "Local's pages in English" meant to mean ? If it means
"These files are needed to translate the French program to an English
one" then why don't they just say so ? Have never heard the term
"Local's pages" before. Is that a French term ? Or a UNIX term ?
Some
translations are not complete but you should have no problem -

The words "simple", "no problem" etc. seems to be popping up
throughout these MySQL threads. Pity none of them are correct. IMO
any program that needs to be translated before being used can hardly
qualify for such terms.
I didn't and
I don't speak French either. Quoting from the English_readme text file:
"There three new images and the easyphp.INI file has been set to English for
MySQL and EasyPHP. Just unzip the files into the appropriate folders and
overwrite the original ones."

"Just". That sounds like another of those "easy", "simple" etc. words.
Everything is "easy" AFTER one knows how something is done.
Since the Apache/PHP/MySQL set is a simplified version, the download is even
small.

My setup file was over 11MB. I wouldn't call that small.
Setup time is a couple of minutes or less. EasyPHP provides an icon
to start the server (I put it on my desktop) and an icon in the task bar to
reach your files after the server is running - Web local and Administration
(PHPMyAdmin). As with other server/PHP systems, you must install programs
you want to run in a specific folder (www in the case of EasyPHP).
Additionally, you should get a good PHP editor. Everything is in text files
but using an editor made for programming is a big help. One such editor is
conText (http://www.fixedsys.com/context) and it works well - there are many
more.
On the referenced URL, click on "accueil" (Home) where you will find the
instruction guide.

Ah ! Something in English. Thanks. I missed that. I had been looking
for install info in one of the download files.
Also click the "forum" (French for forum but in French)
<g>

Sure, I see that posts such as ....

"1.- ¿Tengo que instalar el php nuke o no hace falta?

2.- No conecta el apache, dice que Otro servidor web esta usando el
puerto.

Que debo hacer, por favor ayudarme."

Will be of no end of help to me. How could I ever have missed that ?
and "faq" tabs for more info.

Well, the FAQ page looks good. If however EasyPHP really is "easy"
then I shouldn't need to look at it should I ? In any case that page
doesn't mention MySQL issues so that looks a bit worrying. The
MySQL link just goes to their site. Which is of little/no help if one
doesn't know exactly what one needs to be searching for.

I could of course put "How do I create a MySQL file from an Excel or
C.S.V. source file using windows ?" as a search item but I doubt it
would give me anything useful as an answer.

Thanks for the additional info. It is still quite obvious that the
above is not "easy" but I will take another look at things now,
taking the extra info into count.

Regards, John.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top