473,471 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to run mysql script through operating system

1 New Member
Hi!,
I want to run the mysql script through operating system.
Just like in Oracle we run the sql script using
sqlplus username/password@hoststring @file_name.sql
Please help!!!!!

Regards,

Gautam Kumar
Sep 9 '06 #1
2 17883
sang
83 New Member
Hi

To run script through operating system is very easy.

First store your script in the any editor with.sql format.

that is store the script with the extension of .sql format

in dos give the command

mysql> source path of the script file.

that is your file name is script.sql and it is stored in c: mysql dir then the cmd

is mysql>source c:\mysql\script.sql;

Hope this will help you

Thanks
Sang
Sep 14 '06 #2
samershqair
2 New Member
There is another alternative, you can download mysql GUI Tool from the following site :

http://dev.mysql.com/downloads/gui-tools/5.0.html

it will give you a very friendly GUI for mysql, you can execute queries,scripts and load scripts from other files.

Note: try to download the "Without installer (unzip in C:\)" option, then unzip the file into a directory inside the "C:\program files" Directory, then run the query browser.

I hope it will be helpful.
Sep 18 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Vaclav Frolik | last post by:
CHARONWARE, s.r.o. is pleased to announce that a new version of CASE Studio 2 version 2.18 has been released. CASE Studio 2 allows database designers and developers to visualy create and...
4
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...
1
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work....
15
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...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
1
by: jdresow | last post by:
I installed MySQL on a windows server 2003, in an acxtive directory domain and I get error 32 which is a sharing error. I do not understand this and I am also adding the first several lines of my...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
3
by: 11oclocktuesday | last post by:
Can anyone help. I try to run a simple MySQL script within PHP on my computer using it as a local host - and I keep getting http 500 internal server error. My computer will run the php script if I...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.