Browsing all articles in MySQL

Import CSV File into MySQL Database

Posted Under: MySQL on Oct / 20 / 2011

Suppose there is a csv file named address.csv which contains name,email records we can export this data in to my sql with the statements Here we are populating the content to Table Address with skipping very first row which contains labels LOAD DATA INFILE address.csv’ INTO TABLE Address FIELDS TERMINATED BY ‘,’ ENCLOSED BY ‘”‘ [...]

full story

Windows 7 IIS ASP SQL not working

Posted Under: ASP, MSSQL Server, MySQL, Windows Tools, Windows Utilities on Dec / 21 / 2010

By default IIS and SQL Server combination debugging is not default enabled to configure ASP + SQL combination we must configure 3 things 1.  Enable  ASP Debugging Go to Control Panel > Administrative tools > ASP Go to Debugging Sent error to Browser =true Now SQL issue To work with IIS SQL Should enable TCP/IP [...]

full story

sql server change login for a user

Posted Under: MSSQL Server, MySQL on Dec / 6 / 2010

  Syntax alter user user_name with login= login_name eg. Setting login1 as default login for user user1 use db1 alter user user1 with login=login1

full story

start support system for your comapny with email support

Posted Under: meabi-featured, MySQL, Open Source, PHP on Nov / 20 / 2010

tickets are the new trends in support systems, because of its simplicity and tracable nature tickets are nothing but support /queries raised aganist services of a firm to its concerned departments osTicket is a widely-used open source support ticket system. It seamlessly integrates inquiries created via email, phone and web-based forms into a simple easy-to-use [...]

full story

ASP MSSQL Connection

Posted Under: ASP, Linux, MSSQL Server, MySQL on Oct / 9 / 2010

While using asp my convention is to make a connection function inside asp block and to include it on all ASP Files Sub OpenDatabase(ByRef dbConn)    Set dbConn = Server.CreateObject(“ADODB.Connection”) dbConn.ConnectionTimeout = 150 dbConn.CommandTimeout = 150 dbConn.Open “Provider=SQLOLEDB.1;Persist Security Info=False;User ID=username;Password=password;Initial Catalog=database name;Data Source=localhost” end sub savethis into SQLC.asp (SQL Connection) and include in all asp [...]

full story

find number of days in a month from ms sql server

Posted Under: MSSQL Server, MySQL, Technology on Sep / 13 / 2010

to find no of days in a month in sql apply a simple logic take difference in number of days to the next months date with day that of current date for this use datediff and dateadd functions syntax datediff(d,getdate(),dateadd(m,1,getdate())) here datediff is for difference and dateadd is for fetching next months date

full story

Change Default User for

Posted Under: meabi-featured, MSSQL Server, MySQL, Technology on Aug / 3 / 2010

Syntax: Alter user <user> with default_schema =  <schema  name> Eg. alter user study with default_schema=study

full story

My SQL backup From Linux Console

Posted Under: Linux, MySQL on Apr / 26 / 2010

To schedule a mysql database backup it is necessary to take the back up from Console with out prompting pasword, to call crom scheduler crontab Use the following to backup to sql script ]# mysqldump -h localhost -u root -pabcd db> joomla_bup.sql to backup in the name of dates ]# mysqldump -h localhost -u root [...]

full story

Comparison b/w MSSQL and Mysql

Posted Under: MSSQL Server, MySQL on Dec / 29 / 2009

Database engines are a crucial fixture for businesses today. There is no shortage of both commercial and open source database engines to choose from. Microsoft SQL Server 2005 is Microsoft’s next-generation data management solution that claims to deliver secure and scalable applications while making them easy to deploy and manage. MySQL has long been the [...]

full story

Change MySQL Admin password

Posted Under: Linux, MySQL on Dec / 22 / 2009

[root@fedora12 user1]# mysqladmin -u root password 123456 [root@fedora12 user1]# mysqladmin -u root password 123456 mysqladmin: connect to server at ‘localhost’ failed error: ‘Access denied for user ‘root’@’localhost’ (using password: NO)’ [root@fedora12 user1]# mysqladmin -u root -p’123456′ password 123456 [root@fedora12 user1]# When Password is not set [root@fedora12 user1]# mysqladmin -u root password 123456 After Set this [...]

full story

Backing Up MySQL Database

Posted Under: MySQL on Dec / 20 / 2009

Do you need to change your web host or switch your database server? This is probably the only time when you really think of backing up your MySQL data. If you’ve got a website with a database or your custom database running for your applications, it is imperative that you make regular backups of the database. In [...]

full story

PHP MYSQL CONNECT

Posted Under: Linux, MySQL, PHP on Dec / 10 / 2009

<?php $con = mysql_connect(“localhost”,”peter”,”abc123″); if (!$con) { die(‘Could not connect: ‘ . mysql_error()); } // some code ?>

full story

Community



FREE News Letter

Enter your email address

Resources

Please Submit your Email Address to Get Latest Technology News As it Happens


Enter your email address