[how to] Newly installed Postgresql 9.2 on same box as 9.1 |
- Newly installed Postgresql 9.2 on same box as 9.1
- Feature SQL Server 2012 - Filetable - The location of the file can not be opened
- Mysql high delay in critical peak | Professional Help request
- ER relation with unique key
- Copy all data to slave before mySQL replication connect
- my mysql stop running and restart after minutes. why?
- Export a subset of data, from mysql production database, to make a test database
- Out-of-Range and Overflow Handling for float values
- Amazon RDS - Can't connect to MySQL database server?
- Merge Fields into one Row with a Query
- Backup Oracle DB using TSM server version 6.3.0
- Creating Multiple Indexes on SQL Server
- Server Wide DDL Trigger Permissions Issue
- Mysql compatibility between client and server of different versions
- How to determine when to reduce physical memory for SQL Server?
- Create a trigger to update table data on another Server's database
- creating a report on the mysql jasperReport server
- MySQL error 2006 MySQL server has gone away after upgrade to 5.6.10 using homebrew on Max OS X 10.8.3
- Plugin 'FEDERATED' is disabled
- Why does this procedure raise a privilege error?
- Archive partition before delete it?
- Bi-directional replication for the same MySQL table
- MySQL5.6 on Mac OS X 10.6.8 problems when granting permissions to root
- PostgreSQL replication for archiving
- Is it possible to estabilish Dedicated Administrator Connection (DAC) using SSMS?
- How do I restore a plain text postgres .backup file
Newly installed Postgresql 9.2 on same box as 9.1 Posted: 05 Oct 2013 03:39 PM PDT I have a new project at work that is using a PostgreSQL 9.2. But, I'm still having to support a project that uses 9.1. So, I'm trying to configure my local dev box to have both installed. I have gotten 9.2 installed and confirmed it runs fine. However, I can't connect to it. So, how do I connect to this new instance? I thought that the Ubuntu/OS postgres user would allow me to connect, but it doesn't. Other info:
|
Feature SQL Server 2012 - Filetable - The location of the file can not be opened Posted: 05 Oct 2013 09:40 AM PDT When trying to access the files available on the virtual directory created for FileTable, you receive the following error message:
Already granted all permissions, however, the application displays this error. |
Mysql high delay in critical peak | Professional Help request Posted: 05 Oct 2013 12:15 PM PDT I have a Centos 6.4 under 2.6.32-358.18.1.el6.x86_64, running Asterisk 11& A2billing in real-time switching with Mysql 5.5.33. My Server it's a Dell R420 having dual Intel(R) Xeon(R) CPU E5-2470 0 @ 2.30GHz, 32 Cores, and 32 Bbs Ram. My problem is I'm facing serious mysql delay in processing requests in peak hours, where I'm finding over 30 seconds delay in process calls, as asterisk agi need to run about 10 queries, into 10 tables in the DB before processing a call... Below is my.cnf configuration: Below is my load in not so overloaded hour:
Please, what I'm really bad calculating in this, I'm confused in several values, here... and I'd even require a Professional help in this, please if any are available for help, professionally, I'd really appreciate immediate intervention and advice. Regards, |
Posted: 05 Oct 2013 07:40 AM PDT I've a problem about my ER diagram. Assume that I want to draw a diagram with student, member and team. Here is my specs:
I did my ER Diagram: As I said before, student does not have to be a member of any team. In this case, my diagram works fine? I asked it because of the |
Copy all data to slave before mySQL replication connect Posted: 05 Oct 2013 02:48 PM PDT I try to set up mySQL replication, however I have question before I connect 2 servers Q1. Should I import all data from master into slave before I connect 2 servers? ex. if My db have millions of rows, should I copy all data to slave first? Q2. I have read few post about when disaster strikes on master, it switch to slave, so you have time to fix master. What kind of disaster could happen? I have set up mySQL only SELECT, ADD and UPDATE, just wondering what could happen? |
my mysql stop running and restart after minutes. why? Posted: 05 Oct 2013 04:40 AM PDT I have a problem with my mysql. My site was down for a few minutes with this error: And I saw this log in \var\log\mysqld.log : Why this is happening? How to fix it? Note: Page Load Speed of my site is very low for a few minutes in day and after this minutes that is ok. |
Export a subset of data, from mysql production database, to make a test database Posted: 05 Oct 2013 02:57 AM PDT I have a mysql production database, with multiple tables. Tables are related with foreign key constraints. I want to make a small test database, by collecting/exporting only a small subset of data from the whole database (i.e. from all tables), so that foreign key constraints are preserved in the data subset. How can I do that? |
Out-of-Range and Overflow Handling for float values Posted: 04 Oct 2013 11:41 PM PDT am using mysql 5.5 log version with sqlmode='' .I have many columns with float(9,3) as the type. Say for ex one column taxvalue (9,3) Currently if the user enter the value above 999999.000 MYSQL will save its maximum value,ie 1000000.000 and it will not throw any error. If I set the Am using this column in a user entry page and that application is written in C#. I wanted to show a validation message to user if he tries to enter the value above 999999.000. what is the best method I can use to make sure,user is getting a validation message before he clicks the save button.?I have tried with regular expression but its not giving me the desired result because user can enter any value with the range of (9,3).. |
Amazon RDS - Can't connect to MySQL database server? Posted: 04 Oct 2013 09:36 PM PDT So I've been working on this issue for a while now, and I'll explain what I'm trying to do. I'm trying to connect to a MySQL database server, hosted by Amazon Web Services in the Amazon RDS service. The database is up and running, and I've created a security group, as well as an EC2 security group. Within the Ec2 security group, I've opened up port 3306 (the MySQL port), and added it as a rule. I've then applied this rule. I've then connected the security group to the EC2 security group, and I connected the database to the security group. Thus the database should have port 3306 open (and for all I know it does!). So here's the issue. I'm trying to connect to the MySQL server based on the IP of the database I'm given by Amazon Web Services. However, when I attempt to connect via the Terminal command shell, the connection times out, saying that the MySQL connection failed. Here's what I type in: "mysql -h *****.rds.amazonaws.com" where the asterisks are part of the IP address. The error is as follows: "ERROR 2003 (HY000): Can't connect to MySQL server on '*****.rds.amazonaws.com' (60)" I've also tried specifying a username and password to the command, but the same error occurs. Any thoughts as to why the connection is failing? Thanks, any help appreciated! Jake |
Merge Fields into one Row with a Query Posted: 05 Oct 2013 10:57 AM PDT I am working with Microsoft Office Professional Plus 2010. What I am trying to figure out is how to merge all characters for each DOMAIN field into one row, for example: What I would like to accomplish through a query is to take the DOMAIN field and create a view which merges the "Q32" into one row, for example: Is this possible through a design query or would I have to write a SQL statement? I tried the following SQL statement to create a UNION with two different tables, though I still didn't get the merge displayed correctly. |
Backup Oracle DB using TSM server version 6.3.0 Posted: 05 Oct 2013 04:01 PM PDT I'm new to Oracle and TSM server. I installed Oracle11gR2 and TSM server version 6.3.0 (linux Centos 6.4 OS). I did the configuration and everything works fine. so far I arrive to run the following script using rman: I need to know how to backup theOracle DB to a storagepool name ORADisk? I need to understand a bit what does channel mean in a script and what does it actually do. really appreciate your hel and reply. thank you |
Creating Multiple Indexes on SQL Server Posted: 05 Oct 2013 09:44 AM PDT I am creating multiple indexes on a table in SQL Server. The script is still executing but all the required indexes are showing as objects in Object Explorer. Do the objects get created before the index creation has been completed or once the index has been created succesfully? |
Server Wide DDL Trigger Permissions Issue Posted: 05 Oct 2013 04:25 AM PDT I am trying to implement a server wide DDL Trigger that will audit the DDL changes across the databases on the server using script very similar to the article found here The trigger will log the DDL events into one table within one database, however I am coming up against permissions issues and some users, even myself with sysadmin privileges, receive the following error message. I've read about using the Could someone advise on the correct method to implement a trigger of this kind and what permissions are required to users or to a specific login to be used in the WITH EXECUTE AS? EDIT: Some further info The server is running SQL Server 2008 R2 and the DDL Trigger is set to DDL_EVENTS as follows: The above script is how I originally created the trigger and this worked fine for me and some other users, though a user who had db_owner role to a particular database kept receiving the error message above. After trying to implement the WITH EXECUTE AS I found that the trigger would not work for myself. |
Mysql compatibility between client and server of different versions Posted: 05 Oct 2013 06:25 AM PDT How to know what version of mysql client is compatible with what version of the server? Is there backward or forward compatibility tables from the client and/or server point of view? For a given version of the server, how to know which clients are compatible, and conversely? |
How to determine when to reduce physical memory for SQL Server? Posted: 05 Oct 2013 01:25 PM PDT If I repeatedly notice SQL Server reporting a lot of free memory, can I likely remove about that amount of memory from the server without affecting performance? Or, can/should it use more for caching? For this particular example, the server is running SQL Server 2012 Standard Edition on Windows Server 2012. It has 20 GB of physical memory and hosts over 100 GB of data. SQL Server is the only application running on the server. SQLServer;Buffer Manager Buffer cache hit ratio 99.737 % Page life expectancy 874 s SQLServer:Memory Manager Database Cache Memory 6,744 MB Free Memory 5,937 MB Optimizer Memory 5 MB SQL Cache Memory 29 MB Target Server Memory 19,015 MB Total Server Memory 18,407 MB |
Create a trigger to update table data on another Server's database Posted: 05 Oct 2013 03:25 AM PDT I am creating a trigger in MySQL and I need a little help. I have 2 websites, 2 databases (same name) on 2 different web servers, S1 & S2. These databases have the same tables names. I want both the user data on both the websites to be the same. So if one user registers on S1, then that user registration information should be passed to S2. If a user registration information is updated on S1, the same information should be updated on S2. And the same applies for S2. How can I create a trigger so that every time there is an insert / update / delete in database on S1, then the user table on S2 also gets automatically updated. And every time there is an insert / update / delete in database on S2, then the user table on S1 also get automatically updated. Is this possible? Could you provide some examples? |
creating a report on the mysql jasperReport server Posted: 05 Oct 2013 10:25 AM PDT I have mysql local database, in it I have sample data mart. I have installed jasperReport server to my computer. Just using this tool, I want connect to the local mysql database and just create a pdf report or any report without using any tool except jasperReport server. Can I do ? HOw? Note; report will be directly constructed on the whole data reside in the mysql database. (No filtering) I want to see the report on the jasperReport report page. If any change occur on the mysql database, it should be carried out on the report page of the JAsperReport server |
Posted: 05 Oct 2013 05:25 AM PDT I upgraded my installation of MySQL on my Mac OS X 10.8.3 using homebrew
Everything seemed to go smoothly, but...not really, as it turns out. I cannot add a new user (neither through the command line nor through phpmyadmin. I always get the error
I can create new databases without a problem, and I can install, for example Joomla 3.1.1 with no problems. However, when I try to install a new extension into my Joomla installation, I get errors. For example, I get the following error when I try to install a component from NoNumber: Same thing for many other extensions. I tried to start mysql with
and it started with no problem I looked up issues where error #2006 were being reported and how to solve them, and they referred to modifying /etc/my.cnf but there is no /etc/my.cnf configuration file on my system, and there wasn't one in the previous installation of MySQL 5.5.29 (also installed with homebrew) and I had no problems. I ran The output from Exploring a little further, I tried to revert to my previous install of MySQL using
This resulted in the following output: I then accessed mysql from the command line and ran status: As you can see above, it reports But, it also says So something isn't syncing up. Furthermore, when I show databases, I get the following output: But I know I have more than just an So, somehow, it seems to me that mysql is not connecting to the right server, as phpmyadmin reports the same server information that mysql's status command reports: At this point, I am completely lost, and would really need some help. |
Plugin 'FEDERATED' is disabled Posted: 05 Oct 2013 08:25 AM PDT Im trying to start Mysql using easyPHP : the response is an alert window to a log file. The main error is <-- Plugin 'FEDERATED' is disabled -->. Through my research on internet i found that the solution is to add the federated option to "my.ini" file. I did this but it is still not working. Here is an extract from the log file for more information : |
Why does this procedure raise a privilege error? Posted: 05 Oct 2013 12:25 PM PDT I am having trouble getting the following procedure to run on a remote MySQL database - the given error is privilege based (#1227). Locally, the procedure runs fine. QUESTIONS
|
Archive partition before delete it? Posted: 05 Oct 2013 02:25 AM PDT I have manage to create an event and with the following scripts could both create and delete the partition. The issue now I need help on how to save the partition before its deleted? Should I use percona tools or mysqldump itself? |
Bi-directional replication for the same MySQL table Posted: 05 Oct 2013 07:25 AM PDT AppA stores/retrieves data from dbA.tableA AppB stores/retrieves data from dbB.tableA tableA definition is the same across these databases. To start with dbB.tableA was copied from dbA.tableA (assuming both had 5 rows). row6 was created by AppA (say primary key 6) row7 was created by AppB (say primary key 7) I would like row7 to be copied to dbA.tableA and row6 to dbB.tableA
|
MySQL5.6 on Mac OS X 10.6.8 problems when granting permissions to root Posted: 05 Oct 2013 11:25 AM PDT I'm having serious problems with a MySQL 5.6 instance on a Mac Server. We had to upgrade MySQL to a newer version, but it turned to be a bad idea, as we lost control to it. We had a backup of the /data directory and the my.cnf file as well. However, when setting an init_file to restore the previous password and its permissions. So we created a text file with this content: We have double checked the init_file permissions (we even gave it a chmod 777, to make sure it worked), but something is not working. When we run The problem may definitely come from the [Error] lines, but as we haven't used the --skip-locking, it's just confusing. If we try to log into mysql using |
PostgreSQL replication for archiving Posted: 05 Oct 2013 09:25 AM PDT I've looked around a bit and haven't found a very clear strategy or method for what I'm trying to do, which is surprising because I would think it would be a fairly common practice. I currently use Bucardo to replicate in a Master Slave setup. This works fine except I want the Slave to retain all records ever written to it. The master is a smaller system which will need to have its tables truncated periodically. I don't want these truncates to be carried over to the Slave. I would think this would be a fairly common practice but have been stumped finding a solution that will work. Could anyone point me in the right direction? The right direction doesn't necessarily need to involve using Bucardo either. Thanks |
Is it possible to estabilish Dedicated Administrator Connection (DAC) using SSMS? Posted: 05 Oct 2013 11:11 AM PDT Is it possible to connect to the DAC using SSMS? If I understand correctly, it should be possible by using "admin:" prefix before the server name, but I receive the following message:
|
How do I restore a plain text postgres .backup file Posted: 04 Oct 2013 11:31 PM PDT I exported a postgres db from pgAdmin in a plain format because I wanted to search the whole db text. I then tried to restore the database back but it gives an error saying that the archive file is not valid archive file. How do I restore the db back if it can be restored? |
You are subscribed to email updates from Recent Questions - Database Administrators Stack Exchange To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment