Domain Name Now Doesnt Work
I have a software script I had installed on my server that works with a mysql database. It was working fine as far as pulling information from the database under my old domain name, however, I changed to a new domain name as primary on my server and now the database does not pull anything into the template.
I know this is probably simple but not sure how to fix this.
View Complete Forum Thread with Replies
Related Forum Messages:
Function Doesnt Work
i tried write simple function: CREATE FUNCTION `getLastNumber`(some_guy INT(50), date DATE) RETURNS float BEGIN DECLARE a FLOAT; SET a = NULL; SELECT number INTO a FROM numbers p WHERE p.number_owner = some_guy AND p.date_created <= date ORDER BY p.date DESC LIMIT 1; RETURN a; END that would return last inserted number into table for some person. When some_guy has number in table, then is everything ok and it returns last number, but when some_guy does not have row in table it returns: Query OK, -1 rows affected. Pls why? and how to fix it?
View Replies !
GROUP BY Doesnt Work
i have a table that contains the folowing fields: some_table: company_number something_number price date_price_established for a certain company i need to get all the dates that prices were established. and i dont want any date_price_established to repeat themselfs. for example, for the following database: 1,1,15.5,1.1.2006 1,1,16,1.1.2006 1,1,17.5,1.1.2006 1,1,16,3.1.2006 the results will be : 1.1.2006, 3.1.2006. this is what i've tried: SELECT date_price_established FROM myDb.some_table WHERE company_number = 1 GROUP BY date_price_established";
View Replies !
Where Clause Doesnt Work
im creating a website with a mysql database. ive jus got started. im havin a few problems i have a product table and i execute a simple query but it doesnt seem to give me any results: heres the query: Select * from product where ProductName = 'Age of Empires III'; the above query doesnt work but this 1 does Select * from product where ProductName LIKE 'Age%';
View Replies !
Mysqldump Doesnt Work
i try to insert the followind data to mysql database mysqlimport -u root -p anaktisi2 < phpbb_db_backup.sql But this doesnt insert anything in the db.
View Replies !
Full Text Searsh Doesnt Work
I am trying to do a Full text search, but I have two problems. 1. If I enter a word that is found under multiple entries, I get no return. But it i search a word tha's only under one enetry, then it works. 2. This query works: PHP SELECT * FROM `site` WHERE MATCH (site_name,keywords) AGAINST ('mice') AND `approved`=Ƈ' , but when I add WITH QUERY EXPANSION, it doesnt work. PHP SELECT * FROM `site` WHERE MATCH (site_name,keywords) AGAINST ('mice' WITH QUERY EXPANSION) AND `approved`=Ƈ' I get this error: MySQL said: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH QUERY EXPANSION ) AND `approved` = Ƈ' LIMIT 0, 30' at
View Replies !
WHERE Doesnt Equal
I am trying to select something my DB where a clause does not equal something but for some reason I cant seem to make it work. Here is what I have tried. PHP Code: SELECT * FROM golf_groups WHERE name!="something" but this doesnt seem to work. i had done something like this before and thought that I had done it this way, but since this does not work,
View Replies !
It Doesnt Use My Index!
`player_1` mediumint(7) unsigned NOT NULL default Ɔ' `player_2` mediumint(7) unsigned NOT NULL default Ɔ' reffering to users' id-number in another table. I have two indexes: KEY `one` (`player_1`), KEY `two` (`player_2`) The cardinality of them is 6000 and 7000. My primary-key has cardinality 150 000. When i run this query: EXPLAIN SELECT * FROM `gamebase` WHERE player_1 =1 It uses the "one"-key (doh!). But now, that I run my next query (using OR), it tells me that one and two are possible keys, but it uses neither, but loops through my entire table "Using where". EXPLAIN SELECT * FROM `gamebase` WHERE player_1 =1 OR player_2 =1
View Replies !
Its Returning A Value That Doesnt Exist
Okay here is the deal. I am running a query to find out if there is an ID in my table that has a case number that matches the one being submitted. If there isnt once its should step into an if statement that would submit a number of records. Otherwise it should jump to the else statement. I the problem comes from: the query keeps returning "Record id#2" but there is no record matching the case number being submited from the form. if( isset($_POST['Submit'])){ //Begin If statement logic $resultcheck = mysql_query("SELECT * FROM submissions WHERE wfmcase = " . $_POST['wfmc']) or die(mysql_error()); //Query string to test if wfmcase was already submitted echo "Sucess, form varibles have been passed.<br />"; echo "Resultcheck query results: $resultcheck <br />"; if ($resultcheck == ""){ //Checks to see if the query was empty. echo "There are no duplicate case escalations pending. <br />"; I added the echo statement so that i could see how far it was getting through the script. It dies after printing the varible $resultcheck which gives "Record id#2". It never enters the 2nd if statement because for what ever reason the query has the "record #id2" in it... What is causing this? I have verfied that there is no case that matches the one coming from the form and i get the same error.
View Replies !
My Domain Name
I've been trying to get MySQL to work for the last week. I've tried looking all over the web but nothing seems to work.My domain name links to a directory on my home computer. I'm running Windows with Apache, PHP, and now MySQL. Apache and PHP work fine and I can connect to MySQL on localhost, but when I try to connect to (my domain name) it keeps giving me the "can't connect on 10061" error. I'm entering "mysql -h (my domain name) -u guest -p". I made a user named guest and as I said, can connect if I use "mysql -h localhost -u guest -p." mysqld.exe is running as a service. Window's firewall is disabled. Can't connect using mysql_connect in PHP either.
View Replies !
Can I Have My Db On Different Domain
I've goto migrate a website to a new server, is there anyway (in the connection string) that i can continue to reference the old server (which houses mysql) and have the website on the new server and then be able to switch the connections strings when we are happy with the migration and we don't lose that much data.
View Replies !
Virtual Domain
I have a dedicated server with 5 virtual domains under iis. i just installed mysql. how do i create a separate instance of mysql for each of my virtual domain so that one domain affects only tables created by that domain and not step on tables of other domain? let's say that each virtual domain is a separate web site with different fqdn
View Replies !
Mysql Db On Another Domain
www.domain1.com has a script that saves the last login of users. the script needs to save to a mysql DB on another domain's DB table (www.domain2.com - MySQL DB). Password and user for domain2 DB is provided. is it possible to connect/save data to a mysql db on another domain
View Replies !
Store DB For Each Domain
if there is a way to set up MySQL server to keep DB's for one user in it's home folder? I wonder how those virtual (shared) hosting companies set it up? What I mean is say if I have two users (domains) on the server they will have all their files in their home folders. /home/domain1.com/ /home/domain2.com/ I ask this because I find it neat to have all the files for one domain in one place - mostly for backup.
View Replies !
Domain Values
I have table which has a column called URL, in which different formats of urls are stored. I want to read hostname, www.domain.com, from url column and strip out remaining data. I was reading regexp manual and i think it cannot be use before WHERE clause e.g select url regexp '' from table but at the same time i saw this functionality on another website so it is doable.
View Replies !
Removing A Domain
I added a new domain but by mistake i inserted an incorect username from what the client wants. how can i change it, or remove the user and redo it.
View Replies !
Transferring Of Domain
I would transfer a domain from an hoste to another, and I'dlike to transfer databases, also. I encountered someproblems with phpMyAdmin, and I thought: IT IS POSSIBLE TO CONNECT TO A SERVER AND BACKUP A DATABASE WITH MYSQL ADMINISTRATOR, or another MySql tool? How to configure the connection?
View Replies !
Mysql To Virtual Domain
I have a dedicated server with 5 virtual domains under iis. i just installed mysql. how do i create a separate instance of mysql for each of my virtual domain so that one domain affects only tables created by that domain and not step on tables of other domain? let's say that each virtual domain is a separate web site with different fqdn
View Replies !
Accessing MySQL DB From Another Domain
what is the best way to access data in a MySQL database on one domain from a PHP script on another. We have a secure (SSL) server on one domain which will be used for secure credit card transactions. We would like to be able to extract insecure contact information from MySQL database on another domain in another hosting environment.
View Replies !
Storage Of Domain Names
I'd like allow user to enter domain names in a form and then to store these in a table field in MySQL.Googled this bigtime butdidn't find anything on it. What I would need is the regex poliching of the domain names (I guess I cannot put slashes into the database without caution, right?
View Replies !
Configuring XAMPP In The Domain
I am installing my XAMPP in my pc. It works fine. Everything works. My question is, is it possible to install XAMPP inside in my domain e.g., www.mydomain.com/xampp. Please help me to configure it using the domain, not in the localhost.
View Replies !
Regexp Matching *.domain.com
I don't think this is possible, but perhaps it's just beyond me? I have a database of domain names. other1.com *.test.test.com test.com *.other2.com How can I validate domain name search like "test.com" = valid domain "other.test.com" = invalid domain "other.test.test.com" = valid domain Here's my attempt, but i'm not even close. SELECT * FROM `dns` WHERE `DNS_Lookup` REGEXP ^([^.asterisk.])([.period.])(".$_DNS_SEARCH.")$';";
View Replies !
Grant All Privileges On Domain
how do i grant the privileges for user on the domain?? this one for a specific ip adress GRANT ALL PRIVILEGES ON *.* To root@'192.168.0.112' IDENTIFIED BY ''; how to make it for the domain?
View Replies !
Cannot Connect To Mysql On 1 Domain
i have several domains all connecting successfully to mysql, but recently, 1, has refused to connect giving the dreaded "1045 access denied etc" message. I have made a new user granting all privileges, but stll errors. i have tried connecting with: mysql administrator, dreamweaver amongst others. any help or guidance would be gratefully received as i need to get this sorted quickly as i cannot see where else to go with this. cheers MySQL 4.1.22-standard
View Replies !
MySQL Domain Deleted
I have Windows 2003 server Web edition and use PLESK. Yesterday a domain was deleted using PLESK. Under this domain I had created MySQL user and this user was deleted too when domain was gone.
View Replies !
Using MySQL/PHP On Someone's Domain.
You know if you wanna connect to mysql through php in the localhost you just do: $db = mysql_connect("localhost", "user", "password"); mysql_select_db("database", $db); Now.. what if I wanna put.. lets say the database on a web space I got from my ISP. Questions are: Which files do I need to put on the webspace? How do I connect to it? Do I need to do anything first?
View Replies !
Rename Domain Name In Mysql Database
In certain table I want to change the word mydomain.com by mynewdomain.com everywhere it appears, any column, any row. Is there a way to perform this without downloading the table, making the changes and upload it again?
View Replies !
General Log For Single Database/domain
Is it possible to have general_log setup for a single database or domain on a server with multiple databases and domains? I would like to monitor a single domain, but it's not required for the entire database server.
View Replies !
Query For Attribute Type/domain
How can I find out the type of an attribute through a SQL query. For instance, if I have a table and one of it's fields/attributes/columns/whatever is "name" and is of type "tinytext" how can I, through a SQL query (such as mysql_query() in php) get "tinytext".
View Replies !
LOAD DATA INFILE (using UNC, Windows Shares) On A DOMAIN Controller
Since we migrated MySQL on a Faster and Better Server we have some problems with LOAD DATA INFILE and OUTFILE command. Since this could be a permission problem i really don't know.... example. 1 load data infile '//server//myfile/test.txt' into table a; got errno: 13 if i remember correct FILE NOT FOUND. however typing servermyfile in Start->Run Works ok without authorization. MYSQL-SERVER: Mysql is on Windows Server 2008, All network passwords are saved inside OS on user accounts. So I tested that in Windows and Shares All Fine. -this machine is not on a DOMAIN. But authorization works ok with saved passwords and user names Server: (where the file is): Windows Server 2003 SP1 SBS Domain Controller , AD. Other App, Main APP whitch is 32bit uses MySQL on that other server there... -all works fine but UNC paths and authentication does not seem to go... -tryed some tricks... not sure if it will work... I'll try on Monday... However: I tryed to Use My Linux machine that has Samba installed. And i got there some anonymous shares that do not require any authentication at all. And MySQL works fine at that point. LOAD DATA INFILE executes fine.... samba log : mysql connects using UNC without any user name or password.... did not find any kind of user name or password sent using this method.... Maybe MySQL should just add this kind of function to my.ini..... I'll write if I find a solution fast on Monday.... Since I think this is more of a PERMISSION problem on Windows.... Should installed Linux on that machine though!:(
View Replies !
SELECT Doesnt Select Anything WHERE Doule
I am running the next script SELECT * FROM flcc_Tickets WHERE 'Match No'=1; but dont get any results although there are lots of resords with 'Match No'=1 in a table. 'Match No' is DOUBLE . if run it with 'Match No'=0 i get all the table.
View Replies !
User@localhost And User@domain.com
I have been following a tutorial for a mail server which uses mysql, mainly postfix all through the tutorial i have been asked to put a user and password in the files for the database.. which i have done root and pass1 in the log files the error shows as warning access denied for user root@domain.com ( using password : yes ) when i log on from the shell, to mysql and purpously get the password wrong, I get access denied for user root@localhost ( using password : no ) i have checked the password is correct.. is the part after the @ the issue, and how can i tell mysql that root@domainname.com is a valid user???
View Replies !
Bug Work
I've got this bug http://bugs.mysql.com/bug.php?id=27861. I know they've made a fix and it's going to come out in the next version but is there any way I can fix this myself?
View Replies !
How Does Sql Work Exactly?
Well what exactly does sql do when you create a table for like a login (user) What does the tables and stuff do. Do they just create like a library to store that users information so they can log back in to site or w/e....
View Replies !
Subselect Does Not Work
i am trying to remove values from a list menu if the join table d= oesnt have keys when a key is selected for instance: locations locationID locations_join locationID shotlistID SELECT SQL_NO_CACHE l.locationID , l.location FROM locations l LEFT JOIN lo= cations_join lj ON l.locationID =3D lj.locationID WHERE l.locationID NOT IN= (select locationID FROM locations_join WHERE shotlistID IN (5069)) ORDER B= Y l.location ASC. so when shotlistID is selected all the keys from the locations_join joined = to the shotlistID would be remove from the locations list please help, i'm = trying to do this in one query saving from getting all the keys into an arr= ay then checking if the values arent in the array when generating the list.
View Replies !
Date_add Does Not Work
I'm using mySQL 5.0, with a database of UNIX timestamps. Can someone explain this to me? This query works great: SELECT from_unixtime( 1132277574 ) But this one breaks: SELECT date_add(from_unixtime( 1132277574 ), interval 1 week) Telling me, oh-so-helpfully, that the error is near "'week)'". (It doesn't work when I use "1 weeks" either.)Does the from_unixtime simply not work with the date_add function, or is there some arcanity to this syntax that I'm missing?
View Replies !
Getting Log File To Work
I am putting log = "C:Program FilesMySQLMySQL Server 5.0sql.txt" into my .ini files and mysql wont start. I cant work out the syntax to tell mysql to ouput all the queries to a log file.
View Replies !
How Does Synchronizing Work?
I have a question; currently we want to run our central database from two different locations as opposed to one currently. I am trying to figure out how to synchronize the two locations. My question is: if two (or more) locations create new clients locally, each location will thus create a new client-numbers on their own active operational database. This opens the possibility that each locations will create identical client-numbers; of course being different clients altogether.
View Replies !
Mysql_connect Does Not Work
I have searched through the forum and tried the suggestions that have been made for this issue but I am about ready to give up! I have installed Apache 2.0.52, PHP 5.0.3, and MySQL 4.0.23 on Windows XP. I uncommented extension=php_mysql.dll in the php.ini file and copied libmysql.dll into both C:WindowsSystem32 and C:WindowsSystem. My phpinfo.php test works fine so I know PHP and Apache are working together. I do not see any MySQL references on that entire page. From previous posts I know I should. Needless to say, mysql_connect(...) does not work, it gives an undefined function error. I apologize if this should have been posted in the PHP forum instead. If it is a PHP issue, I will repost this there.
View Replies !
Work In MySql
This query works fine in SQL Server, will it work in MySql? SELECT a.total, b.browsertotal, b.browser, (b.browsertotal / a.total) * 100 AS browserpercent FROM (SELECT Count(id) As total FROM MyTable) a, (SELECT count(id) as browsertotal, browser FROM MyTable GROUP BY browser) b I dont have MySQL and I am trying to help someone out.
View Replies !
Getting PHP & MySQL To Work Together
I am trying to get PHP to write into MySQL database. Right now it does not seem that it is doing such, MySQL doesnt appear when I bring up the PHPInfo() page. I have removed semi-colons before the Mysql.dll extension in php.ini, and I have made sure that PHP is in the windows PATH. What else do I need to do to get this stuff running?
View Replies !
Sql Statement Doesn't Work
When i was using a previous version of mysql (3.something) this sql statement worked fine. strSQL = "SELECT COUNT(*) as COUNTER FROM prayerrequest where dateexpires <= '" & sDate & "'" sDate equals todays date. But after installing the new version (4.1) of mysql this statement no longer works. I went as far as stepping through all dates and comparing them and it wouldn't work. "1/11/2005" from the database did not equal sDate which was "1/11/2005".. The only way I could get it to work was to use the asp/vb function FormatDateTime on dateexpires and then compare it with sDate. Does mysql not return a different var type? Is there anyway I can convert dateexpires in the above sql statement so I can compare it with sDate?
View Replies !
Cannot Get 3 Where Statement To Work
I am having a problem with MySQL 5. I cannot get 3 where statements to work with my database. Any two of the three work fine and return records as they are supposed to but when I add a third clause (all clauses are AND) I get absolutely no records at all and no error message. I don't understand what could be causing this and can use any help offered. SELECT this, that, otherthing FROM myTable WHERE something = "this" AND somethingelse = "that" AND yetsomethingelse > 0 ORDER BY RAND() LIMIT 3;
View Replies !
Join Doesn't Seem Work
I have some issues with a simple query, but I just can't figure out why the query doesn't return expected results. Here is the situation: I have a table look like this: TRANSACTION(UNIQUE_ID(PK), CUSTOMER_ID, EMP_ID, TRANS_TYPE, TRANS_DATE, POSTED_DATE, AMOUNT_CHARGED, AMOUNT_PAID, TRANS_LOC, TRANS_ID_CHARGE, TRANS_ID_PAYMENT) Some rules for the data in the table: - The TRANS_TYPE indicates if it is a charge or payment(C charge, P for payment). For a payment, there is a unique TRANS_ID_PAYMENT, and for same transaction, the charge record holds same TRANS ID in the TRANS_ID_CHARGE field. - The TRANS_LOC is for location where the charge happened. But for a payment record, this field is null. which means, payment records and charge records can't be linked together through location. - TRANS_DATE is the date the transaction happened. For a payment record, this field is also null. - A charge record and a payment record for same transaction usually have different POSTED_DATE since they are posted most likely on different days. - AMOUNT_PAID could be less than AMOUNT_CHARGED for same transaction since customers can have an installment payment plan. Here is my query: SELECT DISTINCT A.CUSTOMER_ID, A.AMOUNT_PAID FROM TRANSACTION A WHERE A.TRANS_TYPE = 'C' AND A.TRANS_DATE BETWEEN '2007-01-01' AND '2007-09-30 AND A.LOC_ID = 1 UNION ALL SELECT DISTINCT A.CUSTOMER_ID, A.AMOUNT_PAID FROM TRANSACTION A, TRANSACTION B WHERE A.TRANS_TYPE = 'P' AND B.TRANS_TYPE = 'C' AND B.TRANS_DATE BETWEEN '2007-01-01' AND '2007-09-30 AND B.LOC_ID = 1 AND A.CUSTMER_ID = B.CUSTOMER_ID AND A.EMP_ID = B.EMP_ID AND A.TRANS_ID_PAYMENT = B.TRANS_ID_CHARGE The purpose of this query is to pair all the charge and payment records for the same transaction that happened between a certain period of time. But the results show that there are some dangling payment records that are not linked to any charge records.
View Replies !
Min Max Does Not Work For Me For Timestamp
I have such a table: id timestamp value person regardless or entering this SELECT id, MIN(timestamp),value FROM table GROUP BY person or this SELECT id, MAX(timestamp),value FROM table GROUP BY person The timestamp value may be properly pulled, yet, the value field is always the same. Meaning, not the value associated wuth the MIN or MAX timestamp value is shown, but the very first for that person. How is that possible?
View Replies !
Why Does This Grant All Does Not Work?
I've created a new user like this: create user myuser identified by 'xxxxx'; commit; Now I'd like to give him all privileges to a certain database: grant all on db210216204.* to 'myuser'@localhost; Now I get an error message: ERROR 1133 (42000): Can't find any matching row in the user table What am I doing wrong? The database exists: mysql> show databases -> ; +--------------------+ | Database | +--------------------+ | information_schema | | baka | | db210216204 | | mysql | | test | +--------------------+ 5 rows in set (0.13 sec)
View Replies !
LD_PRELOAD Doesn't Work
LD_PRELOAD doesn't seem to work with /usr/sbin/mysqld. It works for other programs, but when it comes to mysqld, I always get the same error saying that the object cannot be preloaded, so ignored. I checked that mysqld is not a setuid binary. Is mysqld doing something funny or did I miss anything?
View Replies !
|