Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Creat Mysql In Unix And Pull/post Data From A WindowsXP Machine With A UserDSN?


Can I creat mysql in Unix and pull/post data from a windowsXP machine with a UserDSN?

Is there an Administrative Tool (User DSN) that I can utilize to pull/post data to a Unix account without having to through the long process of "FTP" and "XTerm windows" ?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Pull Similar Data From Two Tables
I need a query to search two seperate tables for similar data and return them in one result.

I know you can do multiple select statements in one query but I dont know how to exactly organize them into one result. Does anyone know how to accomplish this.

How Can I Pull Out All Data For Today From A Timestamp Field
How can I pull out all data for today from a timestamp field?

select * from table where timestamp = now()

or

select * from table where timestamp = date_add(now)

any ideas?

Pull Data From Ibdata And Ib_logfile Files
I lost the data in a scheme and the only logs I have are the ibdata and ib_logfile files. Is there anyway to parse the data from these files to rebuild my data set?

Pull Data From 2 Database Tables Into 1 Table On My Site.
I got 2 tables: a dev_tasks and a task_history table. The task table has to record information about the task I am working on AND the history table is for the task history logs. I am trying to display info from both tables into 1 table on my site.

Most of the info will come from the dev_tasks table BUT i want to dedicate on column of the displayed info for the latest log made to the task_history table.

The common column to both tables is the 'taskid' column.

What would the query look like to pull the info from both tables, knowing that the taskid is common to both and that I want to display the last log per tasks from the task_history table?

How To Creat Composite Key - MySQL???
M using MySQL 5.0 with SQLyog(GUI).

Can anybody tell me how to make composite key in table using SQLyog.

and how can I make ERD?

CREAT TABLE And INDEX At Same Time MySQL
I am trying to add indexes to this table at ssssid, sprice, nights - is this the
correct way to do it?

CREATE TABLE `data_PLG` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(50) default NULL,
`ksvensson` int(10) unsigned default NULL,
`lineid` int(10) unsigned default NULL,
`ssssid` int(10) unsigned default NULL,
`nights` int(3) default NULL,
`rating` varchar(10) default NULL,
`currency` char(3) default NULL,
`sprice` decimal(10,2) default NULL,
`piccodescription` varchar (125),
`brandid` int(10) unsigned default NULL,
PRIMARY KEY (`id`),
INDEX (ssssid, sprice, nights)
) ENGINE=HEAP DEFAULT CHARSET=latin1 MAX_ROWS=30000000;

BACKUP DATA TO LOCAL MACHINE
Is there an easy way I can backup / copy MySql tables to my desktop PC. It would be neet if I could query these backups once of my desktop PC with MS Access.

Restoring Backups From WindowsXP To Linux Ubuntu
I have MySQL tables on a WindowsXP box and backed them up then tried to restore them onto a Linux box. However, it doesn't seem to work.

I can find no trace of the restored files (there are no errors) on the Linux box even though the restore process displays as if it's taking place normally and successfully

Any suggestions?

Creat Sub Column
i have seen a artical about mysql create table in which we can create sub columns of a column it was working fine. i need help about that problem can any body give me any link or solution for this.

example
________ _____________________
| id | main col |
| | sub col1 | sub col2 |

ill be thanx for solution
zerocool

Mysql Pull
I got this in my mysql databe table.
a:1:{i:0;O:19:"test_Enclosure":4:{s:4:"link";s:36:"http://grabber/v/CAcpLiw4qt4.swf";s:4:"type";s:29:"application/x-shockwave-flash";s:6:"length";N;s:10:"javascript";s:2:"js";}}

I want to pull out only the
http://grabber/v/CAcpLiw4qt4.swf part?

POST Submit And MySQL
Probably something stupid, but I don't get this..
When I put a value in the database I first use addslashes (PHP):

$lastname = addslashes($lastname);

In my MySQL database I see this for example: D'Hoore
When I do a search on D'Hoore through a POST form and echo the value submitted I get this: D'Hoore
But when I do a SELECT * FROM contact WHERE lastname LIKE '%$lastname%'; it doesn't return anything!Should I use addslashes() on the search term? Stripslashes? Nothing seems to work?

Creat A Database For Pictures
I am trying to create a picture database to put on the web.. I have no clue where to start.... I have the so far got to the part where i creat a table..

How To Pull Album Infor And Song Info Out Of Mysql Db?
i have a mysql database for music information and it has the following fields :

id ,filename, artist, album, title, remix ,track alternate_name,
parody ,comments, genre, seconds, filesize, bitrate ,visual, url

MySQL Via Unix Sockets
I'm using java+JDBC connector. Where do I need to set up something to work with /var/lib/mysql/mysql.sock

Two Versions Of Mysql On Same Unix Box
I have mysql 3.23.58 version running on my unix box. I installed a new application on it which need mysql version > 4.0 so I thought of having two mysql versions running on the same unix box. I have first installation in /usr/local/mysql and I untared the new version in /var/local/mysql-standard-4.1.18-pc-linux-gnu-i686-glibc23.

I am following instructions given in http://dev.mysql.com/doc/refman/4.1/en/multiple-servers.html I also created a empty file and named it as mysql.sock.new and stored it in /var/local. When I try to start this new version from /var/local/mysql-standard-4.1.18-pc-linux-gnu-i686-glibc23 using ./bin/mysqld_safe --datadir=/var/local/mysql-standard-4.1.18-pc-linux-gnu-i686-glibc23/data & it says "A mysqld process already exists". Please tell me where I am going wrong and how to configure it properly?

Mysql Unix Client
I there, I would like to know if there is a mysql client that we can use from unix to connect to a mysql windows server?

Migrating My Mysql DB From One Machine To Another
We are moving our mysql db from one machine to another -- both linux. Origin machine is running mysql 3.23, destination machine is running mysql 4.1.

Can we simply copy all *.MYD / *.MYI / *.frm files from one machine to the other and have things work?

Or do we *NEED* to do a text dump of the tables, and reload each one individually on the new machine?

How To Go About Re-installing MySQL On A New Machine?
I have MySQL installed and a database already built and loaded with data that is collected nightly from the mainframe database.

I am currently running on NT and will be loading a new image onto the machines to change the operating system to Windows2000.  From what I understand, I will need to copy all files I want to keep, including my database.

My question is, once the new image is on, I will need to re-install MySQL, is it as easy as just copying back the MySQL directory back onto the machine and the database still work?  If not, can someone tell me what the general process is to do this without losing the database and any issues that I am going to run into?

Transferring Mysql Db To Another Machine
i am working from home creating a db and i need to transfer the db to another machine (the other machine is not at home) how do i go about it.

Anyway To Run 2 Instances Of MySQL On The Same Machine?
I was wondering if there is anyway I can run 2 instances of MySQL Server on the same machine, the reason is I have one machine and I want to be able to simulate my program which really talks between 2 systems accessing their own MySQL server datas but I dont have 2 machines with me all the time to do this, it would be great If I could somehow manage this.

Connect To MySql From Another Machine
I have RHEL 4.0 installed on a x86 box, and am using the standard MySql server that comes with RHEL 4 (MySql version 4.1.12). I tried downloading the Administrator tool, but had problems installing it. (This issue has already been reported at http://forums.mysql.com/read.php?34,65093,65093#msg-65093).

I have an Administrator install on a Windows machine, and I want to use it to connect to the MySql server on the RHEL box, but get the error that says: Host '<my_machine>' is not allowed to connect to this MySql Server. Can I use the Windows Administrator tool to connect to a MySql server on Linux? (same network and sub-net)

During the RHEL install, the firewall option has been disabled, so that's not an issue. I think I need to add an entrry somewhere in the MySql db that allows other machines to connect, but am unsure of how to add it, and what the syntax looks like.

MySQL 4.0.x On Multiprocessor Machine
IBM server with dual Xeon processors. I intend to install MySql 4.0.19 on them. Anybody know any issues about this combination?

Access MySQL From Another Machine
how do I make MySQL server accessible from the network to other web
servers. Right now I have the MySQL server and the web Server all on
the same server. But I want to have a server that is solely responsible
for MySQL and 3 others servers that are responsible for web page serving
via Apache. The web servers need to be able to access the MySQL database.

|-----| |----| |----|
|Web | |Web | |Web |
|-----| |----| |----|
! ! !
!!!!!!!!!!!!!!!!!!!! |
|----|
|My- |
|SQL |
|----|


Usinq MySQL And MS-SQL On The Same Machine?
I want to try MySQL but I already have Microsoft SQL Server on my machine. Can
they reside on the same PC or will they mess eachother up?

And why does the name of this newsgroup start with 'mailing.'?

Usinq MySQL And MS-SQL On The Same Machine
I want to try MySQL but I already have Microsoft SQL Server on my machine. Can
they reside on the same PC or will they mess eachother up?
And why does the name of this newsgroup start with 'mailing.'?

Installing MySQL On My Machine
Can I install MySQL on my local home machine?

Connecting To MySql On An XP Machine
I have worked with mySql on my localhost and it does fine. Now I am going to try and login to it from another XP machine. Both machiens are Windows XP Pro SP2. What do I need to type at the command prompt to login to mysql on the other XP machine?

Can't Insert A Unix Timestamp Into Mysql
Just upgraded to 4.1.8 and when I create a field with a date value (field is trdate), it always has default of 0000-00-00. And when I insert values with unix timestamp values (which I prefer, and they come from php's strtotime function),the record does not insert properly. I tried to set, through phpmyadmin, unix/current timestamp and to no avail.

If I use a strtotime php function to convert a date into a timestamp, what is the proven way to make sure that value is saved during inserts? I am on the mysql manual, searched this board, but nothing works.


Mysql 5.0 - Using My.cnf - Unix / Slow-query-log
I installed mysql 5.0 and need to set up slow-query-log and other logging options.

Here is what I did. But I dont see it working yet.

1. cd /var/db/mysql
2. chown mysql slowquery.log
3. touch /usr/local/etc/my.cnf
4. chown mysql /usr/local/etc/my.cnf

vi my.cnf

[mysqld_safe]
-u mysql
--log-slow-queries=/var/db/mysql/slowquery.log

so now when I type:

mysqladmin shutdown
and than

mysqld_safe &
my sql restarts but the log files are not being used.
also - how do I know if my my.cnf is being used at all?

Needed Help With Uninstalling MySQL 5 On Mac/Unix
I have MySQL 5 on my Mac 10.4 and I want to completely uninstall it because I think I have MySQL 4 running on it too. I'm not too sure how to check for this. I'm not the best with administrating a database.

Calling MySQL In Unix In One Line
I'm running MySQL in Unix and I need to run mysql without ever actually going into mysql. Basically I need to open the database, do what i need to do to the database and exit all in one line of code.

If I have to, I could save the sql in a file and go
mysql -h localhost -u ______ -p _________ << mysqlcode.txt
or something with Unix redirection/piping.

However, I'd like to do something more like
mysql -h localhost -u _________ -p ________ - (use tempdatabase; select * from test;)

Is there anyway to do this. The -e paramater looks like it might do that, but I can't figure out how to use it.

MySQL Generate UNIX Timestamp
Cam MySQL create a UNIX timestamp during an INSERT? I want to create a timestamp that is the number of seconds since January 1st 1970. Are there any inbuilt functions for doing so?

Mysql Runs On A Machine With Multiple NIC.
When Mysql runs on machine with multiple NIC's. Mysql server takes the
IP Address that we specify in the configuration file. This IP Address
may or may not be a primary IP Address of that machine. So we specify
secondary IP Address for the Mysql server. It listens in that IP
Address.

When Mysql client from the same machine connects to that server, Mysql
Client is treated,as if the connection is coming from the different
host. i.e. The Rights of the Mysql client will not be same as the rights
of user@localhost instead it will be equal to the rights of the
user@PrimaryIPAddress. Is this behaviour correct or a bug.

MySQL Administrator On A Remote Machine
On my internal network i have mysql running on a test/development webserver (windows), and im trying to use the GUI tool MySQL Administrator on another networked pc but it wont work. It keeps saying 'Error 1045 Access Denied....'

I can ping it fine, and MySQL Administrator GUI works on the server itself.

Installing MySQL On WIN98 Machine
I'm trying to install mySQL on my WIN98 machine (I ran the setup.exe file), and am never prompted for a password when I run the configuration wizard. When I try to then run the command window, I'm asked for the password. Can I change some config file or ini file?

I'm selecting either Detailed or Standard Configuration, and don't ever get the prompt for password. The checkbox for "Install as windows service" is disabled, so I can't check it.

Invoking A MySql Stored Procedure From C In Unix
I've this problem where I have to invoke a MySql stored procedure from my C program. I searched a lot for this. But I couldn't find any solution to this problem.

How Do I Change Which Editor The Mysql Unix Client Uses?
Is it possible to tell the mysql client which editor to use when a user types "edit" at the mysql command prompt? I looked in the mysql client manuals online, but there was nothing about setting editor pref's.

Is Replication Is Possible B/n Two Mysql Running On Different Ports On Same Machine
I am running two mysql in my system with different ports, is replication is possible with two mysql running on different ports in same system?

MySQL VmWare Virtual Machine - Password?
I just downloaded and installed the MySQL-provided VMware linux virtual machine. To logon to it there is a linux user 'lxuser' provided. Anyone know the password for lxuser? root?

How To Insert Machine (local) Time In Mysql
This is a problem I encountered in mysql: how do I insert local (machine) time?

To do this in MS Access, just put now(). I tried this in mysql, it does not work.

see graph(the red chinese characters means the same thing as above.)

Importing MySQL Database To Local Machine
I have exported a MySQL Database from a remote server using PHPMYADMIN, saved on my local XP machine as an sql file to insert (with name _DB_.sql) but am not sure how to get this to run on my local XP machine which is running MySQL locally; When I view the file on Notepad it appears to be executable in some way as it includes CREATE command etc.

I tried the following from MySQL command line SOURCE C:/Program files/MySQL/_DB_sql but can't see any evidence of the database having been created on my local machine.

Multiple MySQL Server Installations On One Machine
First, does MySQL architecture support the creation of multiple MySQL server installations on one machine? (Specifically, I am hoping for two different MySQL 4.0.12 servers on the same machine for two different departments with two different DBAs.)

If so, what naming convention (and infrastructure) distinquishes between the two MySQL servers? What network connectivity file entries would exist to differentiate between the two servers such that I could connect to one or the other servers from a remote client?

Which Is Faster In MySQL? Comparing Unix Times, Or DATETIMES?
I'm leaning towards using unix times inserted into my MySQL for ease of use in manipulating the data with PHP. I think this will be the final decision, which one would be faster?

--

Mysql:
* INT (4 bytes)
* DATETIME (8 bytes)
* TIMESTAMP (4 bytes)

--

My PHP application does alot of querying from the database to compare specific data within TIMERANGES, so always, I'm querying with "time >" or "time <".

My question is would doing the WHERE time query with the native MySQL DATETIME be faster, than doing a WHERE query with the unix timestamp?

Search MYSQL Date-range With Unix Timestamp?
I want to search for records that are ON or After a certain date in a column that uses MYSQL date form (yyyy-mm-dd) with a unix timestamp. Can this be done?

Search MYSQL Date Column With Unix Timestamp?
I want to search for records that are ON or After a certain date in a column that uses MYSQL date form (yyyy-mm-dd) with a unix timestamp.

Compiler Used To Successfully Compile Mysql On Solaris 8 Machine
I have been trying to compile mysql on a solaris 8 machine. However, I
am getting internal compiler errors. What compiler and version did anyone
use to successfully compile mysql on a solaris machine.

How Do I Create A Database On Linux Machine Running Mysql?
I have an sql script file that is supposed to create
a set of database tables for me. Supposedly I type
the following on my linux box and its all supposed
to work...

mysql (ENTER)
. mysql_dump.sql.txt

When I type myslq <ENTER> I get a command prompt
that looks like this...

mysql>

But I don't know how to change directories from that
command prompt to the directory where mysql_dump.sql.txt
is located. Can someone tell me how to change dirs at
the mysql> prompt?

Import Dump From Unix Mysql To Windows Mysql
I am trying to load a dump from a MySQL database on my ISP's server to my development environment on a Win 2K machine (running MySQL). When I run the mysql command to run the load script, MySQL gives the following complaint:

"ERROR 1064 at line 21: You have an error in your SQL syntax. Check the manual t
hat corresponds to your MySQL server version for the right syntax to use near 'D
EFAULT CHARSET=latin1' at line 7"

The dump from the ISP's server is created using mysqldump. The ISP is running MySQL 4.1.20. My development environment is MySQL 4.0.26. I have no problem loading dumps made from my development environment usng phpmyadmin.

How To Run A MySQL Database On Machine Without Installing MySQL Engine.
I need to run a db created in MySQL on a server I cannot install MySQL on. Is there any way how to solve this ? Please let me know the way how to make a rutime to make myself able to work with the given db on that machine.


Copyright © 2005-08 www.BigResource.com, All rights reserved